Mercurial > irccd
changeset 1038:b7585f0c3934
make: add -lm, -ldl and -lpthread
author | David Demelier <markand@malikania.fr> |
---|---|
date | Tue, 27 Apr 2021 17:12:03 +0200 |
parents | 8f8ce47aba8a |
children | be3153b765c0 |
files | GNUmakefile |
diffstat | 1 files changed, 10 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/GNUmakefile Tue Apr 27 09:22:16 2021 +0200 +++ b/GNUmakefile Tue Apr 27 17:12:03 2021 +0200 @@ -141,6 +141,9 @@ TESTS_OBJS= ${TESTS:.c=} +# Per system commands. +OS:= $(shell uname -s) + # Compile flags. DEFS= -D_BSD_SOURCE -DLIBBSD_OVERLAY -DTOP=\"`pwd`\" @@ -159,6 +162,13 @@ endif # Whole libraries for every binaries. +LIBS+= -l pthread +LIBS+= -l m + +ifeq (${OS},Linux) +LIBS+= -l dl +endif + LIBS+= $(shell pkg-config --libs libbsd-overlay) ifeq (${SSL},1) @@ -178,8 +188,6 @@ SED.js= /@define WITH_JS@/d endif -# Per system commands. -OS:= $(shell uname -s) ifeq (${OS},Darwin) SHFLAGS= -undefined dynamic_lookup