# HG changeset patch # User cslag # Date 1451081597 -3600 # Node ID 4eef76c8d22fff07f16b2100fab18526649c503e # Parent 2cccd38e5e4de8848e3098d9ca5d84b731f5491d - another gnu/kfreebsd configure script linker flag diff -r 2cccd38e5e4d -r 4eef76c8d22f configure --- a/configure Fri Dec 25 21:16:04 2015 +0100 +++ b/configure Fri Dec 25 23:13:17 2015 +0100 @@ -86,7 +86,10 @@ printf "RM=rm -f\n" >>$C ;; GNU/kFreeBSD) - printf "LDLIBS=-lm\n" >>$C + if [ -z "${CFLAGS}" ]; then + printf "CFLAGS=-fPIC\n" >>$C + fi + printf "LDLIBS=-lm -ldl\n" >>$C ;; MacOSX|Darwin) # if Apple's libtool (not to be confused with GNU's) is available, which is according to libtool(1) "with -static [...] intended