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
|
ifdef STATIC
|
||||||
LIBGRAY := $(LIBGRAY:so=a)
|
LIBGRAY := $(LIBGRAY:so=a)
|
||||||
LIBRARIES := $(LIBRARIES:so=a)
|
LIBRARIES := $(LIBRARIES:so=a)
|
||||||
|
ifndef SEMISTATIC
|
||||||
LDFLAGS += -static
|
LDFLAGS += -static
|
||||||
|
endif
|
||||||
else
|
else
|
||||||
LDFLAGS += -Wl,-rpath '$$ORIGIN/../lib/'
|
LDFLAGS += -Wl,-rpath '$$ORIGIN/../lib/'
|
||||||
endif
|
endif
|
||||||
|
5
configure
vendored
5
configure
vendored
@ -55,7 +55,10 @@ done
|
|||||||
printf 'Running on '
|
printf 'Running on '
|
||||||
case $(uname -s) in
|
case $(uname -s) in
|
||||||
Linux*) echo 'Linux' ;;
|
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' ;;
|
CYGWIN*|MSYS*|MINGW*) echo 'Windows' ;;
|
||||||
*) echo 'unknown OS' ;;
|
*) echo 'unknown OS' ;;
|
||||||
esac
|
esac
|
||||||
|
Loading…
Reference in New Issue
Block a user