fix static compilation on macOS
This commit is contained in:
parent
d8ffd97739
commit
02ade0e2d0
2
Makefile
2
Makefile
@ -81,7 +81,9 @@ endif
|
||||
ifdef STATIC
|
||||
LIBGRAY := $(LIBGRAY:so=a)
|
||||
LIBRARIES := $(LIBRARIES:so=a)
|
||||
ifndef SEMISTATIC
|
||||
LDFLAGS += -static
|
||||
endif
|
||||
else
|
||||
LDFLAGS += -Wl,-rpath '$$ORIGIN/../lib/'
|
||||
endif
|
||||
|
5
configure
vendored
5
configure
vendored
@ -55,7 +55,10 @@ done
|
||||
printf 'Running on '
|
||||
case $(uname -s) in
|
||||
Linux*) echo 'Linux' ;;
|
||||
Darwin*) echo 'Mac' ;;
|
||||
Darwin*)
|
||||
echo 'macOS'
|
||||
# static libc is not available on macOS
|
||||
printf 'SEMISTATIC=1\n' >> configure.mk ;;
|
||||
CYGWIN*|MSYS*|MINGW*) echo 'Windows' ;;
|
||||
*) echo 'unknown OS' ;;
|
||||
esac
|
||||
|
Loading…
Reference in New Issue
Block a user