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
|
endif
|
||||||
|
|
||||||
ifeq ("$(OSNAME)", "darwin")
|
ifeq ("$(OSNAME)", "darwin")
|
||||||
CFLAGS+=-I/opt/local/include/ -I/usr/local/opt/openssl/include
|
CFLAGS+=$(shell pkg-config openssl --cflags)
|
||||||
LDFLAGS+=-L/opt/local/lib -L/usr/local/opt/openssl/lib
|
LDFLAGS=$(shell pkg-config openssl --libs)
|
||||||
CFLAGS+=-I/opt/homebrew/opt/openssl/include
|
|
||||||
LDFLAGS+=-L/opt/homebrew/opt/openssl/lib
|
|
||||||
S_SRC+=src/bsd.c
|
S_SRC+=src/bsd.c
|
||||||
else ifeq ("$(OSNAME)", "linux")
|
else ifeq ("$(OSNAME)", "linux")
|
||||||
CFLAGS+=-D_GNU_SOURCE=1 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2
|
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)
|
OSNAME=$(shell uname -s | sed -e 's/[-_].*//g' | tr A-Z a-z)
|
||||||
ifeq ("$(OSNAME)", "darwin")
|
ifeq ("$(OSNAME)", "darwin")
|
||||||
CFLAGS+=-I/opt/local/include/ -I/usr/local/opt/openssl/include
|
CFLAGS+=$(shell pkg-config openssl --cflags)
|
||||||
LDFLAGS+=-L/opt/local/lib -L/usr/local/opt/openssl/lib
|
LDFLAGS=$(shell pkg-config openssl --libs)
|
||||||
CFLAGS+=-I/opt/homebrew/opt/openssl/include
|
|
||||||
LDFLAGS+=-L/opt/homebrew/opt/openssl/lib
|
|
||||||
else ifeq ("$(OSNAME)", "linux")
|
else ifeq ("$(OSNAME)", "linux")
|
||||||
CFLAGS+=-D_GNU_SOURCE=1
|
CFLAGS+=-D_GNU_SOURCE=1
|
||||||
endif
|
endif
|
||||||
|
|
Loading…
Reference in New Issue