This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch] Tiny fix of LINK_COMMAND_SPEC
- From: Joern RENNECKE <joern dot rennecke at st dot com>
- To: Jakub Jelinek <jakub at redhat dot com>
- Cc: Kaz Kojima <kkojima at rr dot iij4u dot or dot jp>, gcc-patches at gcc dot gnu dot org
- Date: Wed, 20 Jul 2005 12:48:25 +0100
- Subject: Re: [patch] Tiny fix of LINK_COMMAND_SPEC
In http://gcc.gnu.org/ml/gcc-patches/2005-07/msg00357.html
Jakub Jelinek wrote:
That's really weird, as link_ssp either expands to nothing
(in which case the space is not desirable), or has a space at the end
already:
#define LINK_SSP_SPEC "%{fstack-protector:-lssp_nonshared -lssp }"
That's not the case when TARGET_LIBC_PROVIDES_SSP is defined;
you've put this into gcc.c:
#ifndef LINK_SSP_SPEC
#ifdef TARGET_LIBC_PROVIDES_SSP
#define LINK_SSP_SPEC "%{fstack-protector:}"
#else
#define LINK_SSP_SPEC "%{fstack-protector:-lssp_nonshared -lssp }"
#endif
#endif