summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Schanzenbach <mschanzenbach@posteo.de>2020-08-18 00:09:59 +0200
committerMartin Schanzenbach <mschanzenbach@posteo.de>2020-08-18 00:09:59 +0200
commit2bce42e5b3630f3835f401e5eeed23a56b7bd875 (patch)
tree0418d7ed9c477dad6d7b7ebfbd020d75a6db3ae5
parentc37363f1cd919495c43d138a8cc2bd71de65f83c (diff)
fix: build on openbsd
-rw-r--r--configure.ac6
1 files changed, 4 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index bb205220c..72309c78d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -142,9 +142,11 @@ AS_CASE(["$host_os"],
UNIXONLY="#"
],
[*openbsd*],[
- LIBS=`echo $LIBS | sed -e "s/-ldl//"`
+ # We need to explicitly link libc
+ LDFLAGS="$LDFLAGS -Wl,-lc"
+ # We also need to enable PIC
+ CFLAGS="-fPIC $CFLAGS"
build_target="openbsd"
- use_openbsd_libtool=true
LIBPREFIX=
DLLDIR=lib
UNIXONLY="#"