Mercurial > hg > nginx-quic
comparison auto/lib/perl/conf @ 6700:0d2956dfc4e6
Perl: pass additional linker options to perl module.
Previously flags passed by --with-ld-opt were not used when building perl
module, which meant hardening flags provided by package build systems were not
applied.
author | Konstantin Pavlov <thresh@nginx.com> |
---|---|
date | Tue, 20 Sep 2016 22:11:23 +0300 |
parents | 39a806ccf21e |
children | 30b6f1ff192b |
comparison
equal
deleted
inserted
replaced
6699:9cf2dce316e5 | 6700:0d2956dfc4e6 |
---|---|
26 echo | 26 echo |
27 | 27 |
28 exit 1; | 28 exit 1; |
29 fi | 29 fi |
30 | 30 |
31 NGX_PM_CFLAGS=`$NGX_PERL -MExtUtils::Embed -e ccopts` | |
32 NGX_PM_LDFLAGS=`$NGX_PERL -MConfig -e 'print $Config{lddlflags}'` | |
33 | |
31 NGX_PERL_CFLAGS="$CFLAGS `$NGX_PERL -MExtUtils::Embed -e ccopts`" | 34 NGX_PERL_CFLAGS="$CFLAGS `$NGX_PERL -MExtUtils::Embed -e ccopts`" |
32 NGX_PM_CFLAGS=`$NGX_PERL -MExtUtils::Embed -e ccopts` | |
33 | 35 |
34 # gcc 4.1/4.2 warn about unused values in pTHX_ | 36 # gcc 4.1/4.2 warn about unused values in pTHX_ |
35 NGX_PERL_CFLAGS=`echo $NGX_PERL_CFLAGS \ | 37 NGX_PERL_CFLAGS=`echo $NGX_PERL_CFLAGS \ |
36 | sed -e 's/-Wunused-value/-Wno-unused-value/'` | 38 | sed -e 's/-Wunused-value/-Wno-unused-value/'` |
37 # icc8 warns 'declaration hides parameter "my_perl"' in ENTER and LEAVE | 39 # icc8 warns 'declaration hides parameter "my_perl"' in ENTER and LEAVE |