diff options
author | Matthieu Patou <mat@matws.net> | 2010-12-10 23:16:28 +0300 |
---|---|---|
committer | Matthieu Patou <mat@matws.net> | 2010-12-10 23:22:28 +0300 |
commit | 6875a611a71bf6d1623fc62361fc8b145b1f6559 (patch) | |
tree | f89ff636489f5b1cadafa2a2a30f509398cb3c1b /source4/wscript | |
parent | 26a37284b9caffa1e2aebad27d683b15632e7240 (diff) | |
download | samba-6875a611a71bf6d1623fc62361fc8b145b1f6559.tar.gz samba-6875a611a71bf6d1623fc62361fc8b145b1f6559.tar.bz2 samba-6875a611a71bf6d1623fc62361fc8b145b1f6559.zip |
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
Diffstat (limited to 'source4/wscript')
-rw-r--r-- | source4/wscript | 2 |
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 |