File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -9,9 +9,16 @@ INSTALL_BIN_DIR = $(prefix)/bin
99# Workaround for "cannot find crti.o" error (only for x86-64 Ubuntu systems).
1010UBUNTU_LIB = /usr/lib/x86_64-linux-gnu
1111
12+ CONFIGURE_ARGS = --prefix=$(CURDIR ) /$(BIN_DIR ) /$(ASPECTATOR_BIN_DIR ) --enable-languages=c --disable-libsanitizer --disable-multilib --enable-checking=release $(ASPECTATOR_CONFIGURE_OPTS )
13+
14+ # System headers are no longer located in /usr/include on macOS >= Mojave
15+ CONFIGURE_ARGS_MACOS = --with-native-system-header-dir=/usr/include --with-sysroot=/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk
16+
1217LN_FLAGS = "-srf"
1318ifeq ($(shell uname) , Darwin)
1419 LN_FLAGS = "-sf"
20+ # System headers are no longer located in /usr/include in macOS >= Mojave
21+ CONFIGURE_ARGS += $(CONFIGURE_ARGS_MACOS)
1522endif
1623
1724.PHONY : all install test clean
@@ -22,7 +29,7 @@ all: $(BIN_DIR)/cif
2229 if [ ! -f $( BUILD_DIR) /Makefile ]; then \
2330 echo " Configure Aspectator for the first time" ; \
2431 cd $(BUILD_DIR ) ; \
25- MAKEINFO=missing ../$(ASPECTATOR_SRC_DIR ) /configure --prefix= $( CURDIR ) / $( BIN_DIR ) / $( ASPECTATOR_BIN_DIR ) --enable-languages=c --disable-libsanitizer --disable-multilib --enable-checking=release $( ASPECTATOR_CONFIGURE_OPTS ); \
32+ MAKEINFO=missing ../$(ASPECTATOR_SRC_DIR ) /configure $( CONFIGURE_ARGS ); \
2633 fi
2734 @echo " Begin to (re)build Aspectator"
2835 @if [[ -d $( UBUNTU_LIB) && ! -z LIBRARY_PATH ]]; then export LIBRARY_PATH=$(UBUNTU_LIB ) ; fi
You can’t perform that action at this time.
0 commit comments