Commit 10a4c503 authored by David Fuhrmann's avatar David Fuhrmann

contrib: Do not hardcode compiler variables for macOS

Removal of those variables is done for multiple reasons:
- In general, the caller should set correct variables for compilers,
  this should not be done by the script itself
- In recent macOS versions, default stubs for compilers exist
  (/usr/bin/clang / gcc / cc), so there is not need to use xcrun
  anymore
- Some contribs fail to build with the multi-command notion given by
  xcrun cc, instead they are looking for a tool named "xcrun cc"
  which does not exist
parent 42db691c
......@@ -111,12 +111,6 @@ endif
ifdef HAVE_MACOSX
MIN_OSX_VERSION=10.7
CC=xcrun cc
CXX=xcrun c++
AR=xcrun ar
LD=xcrun ld
STRIP=xcrun strip
RANLIB=xcrun ranlib
EXTRA_CFLAGS += -isysroot $(MACOSX_SDK) -mmacosx-version-min=$(MIN_OSX_VERSION) -DMACOSX_DEPLOYMENT_TARGET=$(MIN_OSX_VERSION)
EXTRA_CXXFLAGS += -stdlib=libc++
EXTRA_LDFLAGS += -Wl,-syslibroot,$(MACOSX_SDK) -mmacosx-version-min=$(MIN_OSX_VERSION) -isysroot $(MACOSX_SDK) -DMACOSX_DEPLOYMENT_TARGET=$(MIN_OSX_VERSION)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment