diff options
author | gerald <gerald@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-01-28 23:13:47 +0000 |
---|---|---|
committer | gerald <gerald@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-01-28 23:13:47 +0000 |
commit | 0cfd09e42d6183ccb412b4e97e6ebd976928b3a4 (patch) | |
tree | c82518e46de28dabe12689ca809d8d649fb09ce4 /gcc/config/freebsd-spec.h | |
parent | 16309feffa5946f02e6b824bdf7620eaa1483077 (diff) | |
download | gcc-0cfd09e42d6183ccb412b4e97e6ebd976928b3a4.tar.gz |
* config/freebsd-spec.h [TARGET_LIBC_PROVIDES_SSP]
(LINK_SSP_SPEC): Define.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183670 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/freebsd-spec.h')
-rw-r--r-- | gcc/config/freebsd-spec.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/gcc/config/freebsd-spec.h b/gcc/config/freebsd-spec.h index d8b338226b8..ab587edad61 100644 --- a/gcc/config/freebsd-spec.h +++ b/gcc/config/freebsd-spec.h @@ -1,6 +1,6 @@ /* Base configuration file for all FreeBSD targets. - Copyright (C) 1999, 2000, 2001, 2004, 2005, 2007, 2009, 2010 - Free Software Foundation, Inc. + Copyright (C) 1999, 2000, 2001, 2004, 2005, 2007, 2009, 2010, 2011, + 2012 Free Software Foundation, Inc. This file is part of GCC. @@ -138,6 +138,10 @@ is built with the --enable-threads configure-time option.} \ #define LINK_EH_SPEC "%{!static:--eh-frame-hdr} " #endif +#ifdef TARGET_LIBC_PROVIDES_SSP +#define LINK_SSP_SPEC "%{fstack-protector|fstack-protector-all:-lssp_nonshared}" +#endif + /* Use --as-needed -lgcc_s for eh support. */ #ifdef HAVE_LD_AS_NEEDED #define USE_LD_AS_NEEDED 1 |