| author | Joseph R. Prostko <joe.prostko@gmail.com> | 2012-10-17 8:02:30.0 -04:00:00 |
|---|---|---|
| committer | Joseph R. Prostko <joe.prostko@gmail.com> | 2012-10-17 8:02:30.0 -04:00:00 |
| commit | 9ff1e151e846fffe461e75bbc17ac32a445eb62c [patch] |
|
| tree | 8409bda2a443634e0976693f7a24229be683c198 |
|
| parent | 48df496192a4a00124836fd60547a2b81eb46298 |
|
| download | 9ff1e151e846fffe461e75bbc17ac32a445eb62c.tar.gz |
|
Address issue with building code that relies on SSP * -lssp_nonshared being passed at link time was resulting in multiple definition errors * Apps such as Perl and CUPS would fail to build due to this * This should alleviate the problem when -fstack-protector or -fstack-protector-all are used Thanks to diger for letting me know of this issue and making me aware of a fix
Diff
gcc/gcc/config/haiku.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gcc/gcc/config/haiku.h b/gcc/gcc/config/haiku.h index fbfb4f9..04fdb20 100644 --- a/gcc/gcc/config/haiku.h +++ a/gcc/gcc/config/haiku.h @@ -170,3 +170,8 @@ /* Haiku headers are C++-aware (and often use C++). */ #define NO_IMPLICIT_EXTERN_C /* Only allow -lssp for SSP, as -lssp_nonshared is problematic in Haiku */ #ifndef TARGET_LIBC_PROVIDES_SSP #define LINK_SSP_SPEC "%{fstack-protector|fstack-protector-all:-lssp}" #endif