[syslinux] Patch: Building syslinux on gcc 4

Luciano Miguel Ferreira Rocha strange at nsk.no-ip.org
Tue Feb 6 13:19:13 PST 2007


On Tue, Feb 06, 2007 at 01:02:15PM -0800, H. Peter Anvin wrote:
> Ram Yalamanchili wrote:
> > For newer distro's (like ubuntu 6.10, FC5+), syslinux build fails due
> > to gcc 4. Here is a patch to get it to build properly.
> > 
> > The only thing it does is add -fno-stack-protection to CFLAGS in all
> > the Makefiles.
> > 
> > http://svn.borg.ch/patches/syslinux/syslinux-gcc4.patch
> 
> Double NAK.  It's not gcc4, it's a specific hack which has been added by 
> ubuntu and gentoo (-fstack-protector by default).  It can't be added 
> unconditionally like you did because it breaks earlier gccs.

It's part of GCC 4.1, http://gcc.gnu.org/gcc-4.1/changes.html, based on
IBM's Pro Police.

It's on by default at least in Ubuntu, but not in Fedora.

Syslinux build system has gcc_ok that can be used for checking
-fno-stack-protector, no?

-- 
lfr
0/0




More information about the Syslinux mailing list