Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Config sets optimisation compilation flags (-O/-g)!

by bliako (Monsignor)
on Jan 28, 2019 at 18:14 UTC ( [id://1229082]=note: print w/replies, xml ) Need Help??


in reply to Config sets optimisation compilation flags (-O/-g)!

I have just noticed that CFLAGS suggested by Config also include -D_FORTIFY_SOURCE=2 which causes the compiler to warn me that because of this it needs -O! So the question now is whether I need to use -D_FORTIFY_SOURCE=2 in compiling my perl-embed C programs or I can safely ignore it, at least when I need to debug.

-D_REENTRANT -D_GNU_SOURCE -O2 -g -pipe -Wall -Werror=format-security +-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param +=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/r +edhat-hardened-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables - +fwrapv -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE +-D_FILE_OFFSET_BITS=64

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1229082]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (2)
As of 2024-04-26 00:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found