develooper Front page | perl.perl5.porters | Postings from April 2018

Re: Perl 5.26.2 is now available!

Thread Previous | Thread Next
Achim Gratz
April 15, 2018 19:01
Re: Perl 5.26.2 is now available!
Message ID:
Achim Gratz writes:
> Curious and curiouser… So if I s/FORTIFY_SOURCE/FORCIFY_SOURCE/ in
> lib/ then that problem goes away and gcc gets called with
> "-Wp,D_FORCIFY_SOURCE=2".  Now if I know why that argument to Wp, was
> vanishing…

It's this code in Embed.t:

--8<---------------cut here---------------start------------->8---
   # XXX DAPM 12/2014: ExtUtils::Embed doesn't seem to provide API access
   # to $Config{optimize} and so compiles the test code without
   # optimisation on optimised perls. This causes the compiler to warn
   # when -D_FORTIFY_SOURCE is in force without -O. For now, just strip
   # the fortify on optimised builds to avoid the warning.
   my $ccflags =  ccflags();
   $ccflags =~ s/-D_FORTIFY_SOURCE=\d+// if $Config{optimize} =~ /-O/;
--8<---------------cut here---------------end--------------->8---

It clearly didn't expect the symbol definition getting preceded with
"-Wp," (I still don't know where that is coming from).  However, just
commenting out the line doesn't produce any warnings or erros from gcc
either, so I don't even know what problem it was trying to solve.

+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+

Wavetables for the Terratec KOMPLEXER:

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About