summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
Diffstat (limited to 'source4')
-rw-r--r--source4/wscript2
1 files changed, 2 insertions, 0 deletions
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