mirror of https://git.kore.io/kore.git
On macos use pkg-config for openssl.
This commit is contained in:
parent
98d5909b7d
commit
995b6b8586
6
Makefile
6
Makefile
|
@ -132,10 +132,8 @@ ifneq ("$(SANITIZE)", "")
|
|||
endif
|
||||
|
||||
ifeq ("$(OSNAME)", "darwin")
|
||||
CFLAGS+=-I/opt/local/include/ -I/usr/local/opt/openssl/include
|
||||
LDFLAGS+=-L/opt/local/lib -L/usr/local/opt/openssl/lib
|
||||
CFLAGS+=-I/opt/homebrew/opt/openssl/include
|
||||
LDFLAGS+=-L/opt/homebrew/opt/openssl/lib
|
||||
CFLAGS+=$(shell pkg-config openssl --cflags)
|
||||
LDFLAGS=$(shell pkg-config openssl --libs)
|
||||
S_SRC+=src/bsd.c
|
||||
else ifeq ("$(OSNAME)", "linux")
|
||||
CFLAGS+=-D_GNU_SOURCE=1 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2
|
||||
|
|
|
@ -28,10 +28,8 @@ endif
|
|||
|
||||
OSNAME=$(shell uname -s | sed -e 's/[-_].*//g' | tr A-Z a-z)
|
||||
ifeq ("$(OSNAME)", "darwin")
|
||||
CFLAGS+=-I/opt/local/include/ -I/usr/local/opt/openssl/include
|
||||
LDFLAGS+=-L/opt/local/lib -L/usr/local/opt/openssl/lib
|
||||
CFLAGS+=-I/opt/homebrew/opt/openssl/include
|
||||
LDFLAGS+=-L/opt/homebrew/opt/openssl/lib
|
||||
CFLAGS+=$(shell pkg-config openssl --cflags)
|
||||
LDFLAGS=$(shell pkg-config openssl --libs)
|
||||
else ifeq ("$(OSNAME)", "linux")
|
||||
CFLAGS+=-D_GNU_SOURCE=1
|
||||
endif
|
||||
|
|
Loading…
Reference in New Issue