https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100207

--- Comment #15 from sujay1844 at protonmail dot com ---
I did some digging and found this:-

I checked my timeshift snapshot (which I took just after installation). The
etc/makepkg.conf is that goes like so:-

#-- Compiler and Linker Flags
CPPFLAGS="-D_FORTIFY_SOURCE=2"
CFLAGS="-march=x86-64 -mtune=generic -O2 -pipe -fno-plt"
CXXFLAGS="-march=x86-64 -mtune=generic -O2 -pipe -fno-plt"
LDFLAGS="-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now"
#RUSTFLAGS="-C opt-level=2"
#-- Make Flags: change this for DistCC/SMP systems
#MAKEFLAGS="-j2"
#-- Debugging flags
DEBUG_CFLAGS="-g -fvar-tracking-assignments"
DEBUG_CXXFLAGS="-g -fvar-tracking-assignments"
#DEBUG_RUSTFLAGS="-C debuginfo=2"


To be sure that this is safe, I installed Manjaro in a virtual machine.
(Clearly, the guys at Manjaro know more about security than me) The
/etc/makepkg.conf had the same thing as in my timeshift snapshot. So I conclude
that removing those unwanted flags are safe. I also checked the ArchWiki
article on makepkg and made some tweaks to improve performance and this is my
current /etc/makepkg.conf looks like:-

#-- Compiler and Linker Flags
CPPFLAGS="-D_FORTIFY_SOURCE=2"
CFLAGS="-march=x86-64 -mtune=generic -O2 -pipe -fno-plt"
CXXFLAGS="-march=x86-64 -mtune=generic -O2 -pipe -fno-plt"
LDFLAGS="-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now"
#RUSTFLAGS="-C opt-level=2"
#-- Make Flags: change this for DistCC/SMP systems
#MAKEFLAGS="-j2"
#-- Debugging flags
DEBUG_CFLAGS="-g -fvar-tracking-assignments"
DEBUG_CXXFLAGS="-g -fvar-tracking-assignments"
#DEBUG_RUSTFLAGS="-C debuginfo=2"


Thank you for your valuable time!!
Please give any suggestions if any.
And you can close this bug.

Reply via email to