From 6875a611a71bf6d1623fc62361fc8b145b1f6559 Mon Sep 17 00:00:00 2001 From: Matthieu Patou Date: Fri, 10 Dec 2010 23:16:28 +0300 Subject: build: add a function to test if -lc is needed This is needed on openbsd as some linking flags makes mandatory to specify the libc for the linking --- source4/wscript | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source4') diff --git a/source4/wscript b/source4/wscript index 3213e7c4e4..93391dacd1 100644 --- a/source4/wscript +++ b/source4/wscript @@ -113,6 +113,8 @@ def configure(conf): # allows us to find problems on our development hosts faster. # It also results in faster load time. conf.ADD_LDFLAGS('-Wl,--as-needed', testflags=True) + if not conf.CHECK_NEED_LC("-lc not needed"): + conf.ADD_LDFLAGS('-lc', testflags=False) # we don't want PYTHONDIR in config.h, as otherwise changing # --prefix causes a complete rebuild -- cgit