mirror of
https://review.haiku-os.org/buildtools
synced 2026-02-04 07:53:14 +01:00
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
This commit is contained in:
@@ -170,3 +170,8 @@ Boston, MA 02111-1307, USA. */
|
||||
|
||||
/* 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
|
||||
|
||||
Reference in New Issue
Block a user