From: Bert Hubert Date: Tue, 6 Nov 2012 08:53:52 +0000 (+0000) Subject: make sure we move static /usr/lib archives to the *end* of the commandline, plus... X-Git-Tag: auth-3.2-rc1~29 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f696d497961da9485a2c6c9754b7339cbe4726b0;p=thirdparty%2Fpdns.git make sure we move static /usr/lib archives to the *end* of the commandline, plus hardcode -lm in there git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@2853 d19b8d6e-7fed-0310-83ef-9ca221ded41b --- diff --git a/build-scripts/semistaticg++ b/build-scripts/semistaticg++ index 4a7f1a0c12..68e149852f 100755 --- a/build-scripts/semistaticg++ +++ b/build-scripts/semistaticg++ @@ -10,10 +10,10 @@ otherargs = [] for arg in args: if arg == '-static': continue - if arg.startswith('-l') and arg not in ('-lm','-ldl','-lpthread'): + if arg.startswith('/usr/lib') or (arg.startswith('-l') and arg not in ('-lm','-ldl','-lpthread')): libs.append(arg) else: otherargs.append(arg) -gargv=['gcc']+otherargs+['-Wl,-Bstatic']+libs+['-lstdc++','-Wl,-Bdynamic','-static-libgcc'] +gargv=['gcc']+otherargs+['-Wl,-Bstatic']+libs+['-lstdc++','-Wl,-Bdynamic','-static-libgcc','-lm'] os.execvp('gcc', gargv)