stack-protector flag invalid on newer gcc?
Posted: Fri May 29, 2009 9:24 pm
Hi, this is my version of gcc
This is on a server, so I can't just build and install a different gcc..
Anyway I get
Although this flag works perfectly fine with my older gcc on my workstation
is there like a new -fno-stack-protector flag or something? or is my gcc just heavily patched to include "new" features(newer than what is on my server)
I really do not know how to detect if that flag works and if so then use it(I expect that would take some autoconf crap.. which I don't feel like dealing with)
Code: Select all
Reading specs from /usr/lib/gcc/i386-redhat-linux/3.4.6/specs
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-java-awt=gtk --host=i386-redhat-linux
Thread model: posix
gcc version 3.4.6 20060404 (Red Hat 3.4.6-3)
Anyway I get
Code: Select all
cc1: error: unrecognized command line option "-fno-stack-protector"
Code: Select all
Reading specs from /usr/lib/gcc-lib/i386-unknown-openbsd4.5/3.3.5/specs
Configured with:
Thread model: single
gcc version 3.3.5 (propolice)
I really do not know how to detect if that flag works and if so then use it(I expect that would take some autoconf crap.. which I don't feel like dealing with)