http://bugs.winehq.org/show_bug.cgi?id=4412
Summary: disable stack protector on the wine loader Product: Wine Version: CVS Platform: Other OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: wine-loader AssignedTo: wine-bugs@winehq.org ReportedBy: vapier@gentoo.org
we've been using this in Gentoo for quite some time but i havent sent it upstream as ssp support in gcc used to be a Gentoo-only feature ... but with newer versions of gcc (namely gcc-4.1+), ssp support has been added officially
so this patch will detect if the compiler supports the -fno-stack-protector flag and if it does, automatically build the loader with it (as building the loader with -fstack-protector will fail)
the patch is based on code found in glibc's configure script