re: compiling ports with SSP (was: [PATCH] Add -lssp_nonshared to GCC's LIB_SPEC unconditionally)=

[ Available lists | Index of freebsd-hackers | Month of Feb 2012 | Week of 27 Feb 2012 | Raw email | View thread | Wrap long lines | Reply | Tag ]
From
Bryan Drewery <bryan@shatow.net>
Date
27 Feb 2012 04:07:56
Subject
re: compiling ports with SSP (was: [PATCH] Add -lssp_nonshared to GCC's LIB_SPEC unconditionally)=
Message-ID
4F4AFB53.8020503@shatow.net

References to

[ Hide this part ]
Jeremie,

Thanks for this patch [1]!

I've been building my ports tree with -fstack-protector on FreeBSD 6, 7
and 8. Once I upgraded to 8, I started running into the issue [2] this
patch is fixing.

I have a situation where non-ports applications are compiling
statically, which ran into this. Specifically, the application is
linking in security/openssl statically, which of course was compiled
with -fstack-protector. Adding the /usr/lib/libc.ld fixed it without
needing to hack at the failing non-port application.

Would be nice if this, and PR 138228 were finally committed.

Bryan Drewery

[1] http://lists.freebsd.org/pipermail/freebsd-hackers/2011-June/035538.html
[2] http://gcc.gnu.org/ml/gcc-help/2006-05/msg00092.html





[ Show this part (application/pgp-signature) ]

Elapsed time: 0.173 seconds