public inbox for cygwin-apps@cygwin.com
 help / color / mirror / Atom feed
* FORTIFY_SOURCE
@ 2018-04-15 18:39 Achim Gratz
  2018-04-15 18:51 ` FORTIFY_SOURCE Achim Gratz
  0 siblings, 1 reply; 7+ messages in thread
From: Achim Gratz @ 2018-04-15 18:39 UTC (permalink / raw)
  To: cygwin-apps


Perl and Cygwin do not exactly play together at the moment, but I
haven't been able to track down where that happens.  Perl configure
recognizes FORTIFY_SOURCE=2 proceeds to integrate that knowledge into
Config_heavy.pl.  For whatever reason it decded to use
"-Wp,-D_FORTIFY_SOURCE=2" to do that (which works just fine).  But when
compiling something through ExtUtils::Embed in the just built perl that
option suddenly ends up as just "-Wp," and hangs up the compiler.  If I
rename the defined symbol to "FORCIFY_SOURCE" then it stays in the call
to gcc, so it's specific to that symbol.

I think that's happening somewhere in ExtUtils, but I'd like to ask if
maybe there is some magic going on from the Cygwin / gcc side to remove
that definition?


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

Waldorf MIDI Implementation & additional documentation:
http://Synth.Stromeko.net/Downloads.html#WaldorfDocs

^ permalink raw reply	[flat|nested] 7+ messages in thread
* Re: FORTIFY_SOURCE
@ 2018-04-16 21:14 Richard Campbell
  0 siblings, 0 replies; 7+ messages in thread
From: Richard Campbell @ 2018-04-16 21:14 UTC (permalink / raw)
  To: cygwin-apps

> > Sure, the question is why they use this stage prefix suddenly when they
> > didn't before.
>
> The answer to that question is still open.  Why does cygport set this
> symbol in this manner?  I am removing the "-Wp," and see what the build
> does…

Yaakov added that symbol to lib/compilers.cygpart on February 20 along
with other security flags, in the "Add security flags to CFLAGS"
commit.

https://github.com/cygwinports/cygport/commit/48e7b6e94052ac58643fa3b7989bb7e1468389f7

The "-Wp" just means to pass -D_FORTIFY_SOURCE=2 through to the preprocessor.

Best regards,

-Richard Campbell.

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2018-04-16 21:14 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-04-15 18:39 FORTIFY_SOURCE Achim Gratz
2018-04-15 18:51 ` FORTIFY_SOURCE Achim Gratz
2018-04-15 19:00   ` FORTIFY_SOURCE Brian Inglis
2018-04-15 19:08     ` FORTIFY_SOURCE Achim Gratz
2018-04-15 19:59       ` FORTIFY_SOURCE Brian Inglis
2018-04-16 17:42       ` FORTIFY_SOURCE Achim Gratz
2018-04-16 21:14 FORTIFY_SOURCE Richard Campbell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).