openbsd-ports/lang/gcc/4.7/patches/patch-gcc_gcc_c
pascal 13f6a15732 Patch GCC and derived ports to use PIE by default on the same architectures it
is enabled on in base; except for gcc 3.3, which does not have PIE support and
therefore needs to pass -nopie to the linker.

Also, sync powerpc pthread specs with base.  From Brad.

ok naddy@
2012-09-01 00:00:32 +00:00

13 lines
409 B
Plaintext

$OpenBSD: patch-gcc_gcc_c,v 1.1 2012/09/01 00:00:32 pascal Exp $
--- gcc/gcc.c.orig Thu Aug 30 10:04:35 2012
+++ gcc/gcc.c Thu Aug 30 10:04:54 2012
@@ -610,7 +610,7 @@ proper position among the other output files. */
#ifndef LINK_PIE_SPEC
#ifdef HAVE_LD_PIE
-#define LINK_PIE_SPEC "%{pie:-pie} "
+#define LINK_PIE_SPEC "%{pie:-pie} %{p|pg|nopie:-nopie} "
#else
#define LINK_PIE_SPEC "%{pie:} "
#endif