Mercurial > irccd
changeset 1063:65cd693f20ca
misc: fix build on FreeBSD
author | David Demelier <markand@malikania.fr> |
---|---|
date | Fri, 02 Jul 2021 10:02:50 +0200 |
parents | 7bc2e8fac3dc |
children | f7f73da81a5f |
files | GNUmakefile lib/irccd/util.c |
diffstat | 2 files changed, 5 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/GNUmakefile Fri Jul 02 10:03:50 2021 +0200 +++ b/GNUmakefile Fri Jul 02 10:02:50 2021 +0200 @@ -147,7 +147,7 @@ OS:= $(shell uname -s) # Compile flags. -DEFS= -D_BSD_SOURCE -DLIBBSD_OVERLAY -DTOP=\"`pwd`\" +DEFS= -D_BSD_SOURCE -DTOP=\"$(shell pwd)\" -fPIC ifeq (${DEBUG},1) CFLAGS+= -O0 -g @@ -160,11 +160,8 @@ INCS+= -I./ INCS+= -Iextern/libgreatest/ INCS+= -Iextern/libketopt/ -INCS+= $(shell pkg-config --cflags libbsd-overlay) +INCS+= $(shell pkg-config --silence-errors --cflags libbsd-overlay) -ifeq (${SSL},1) -INCS+= $(shell pkg-config --cflags openssl) -endif ifeq (${JS},1) INCS+= -Iextern/libduktape endif @@ -178,10 +175,10 @@ CFLAGS+= -fPIC endif -LIBS+= $(shell pkg-config --libs libbsd-overlay) +LIBS+= $(shell pkg-config --silence-errors --libs libbsd-overlay) ifeq (${SSL},1) -LIBS+= $(shell pkg-config --libs openssl) +LIBS+= -lssl -lcrypto endif # For config.h file.