openbsd-ports/lang/gcc/4.2/patches/patch-gcc_common_opt
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
447 B
Plaintext

$OpenBSD: patch-gcc_common_opt,v 1.1 2012/09/01 00:00:32 pascal Exp $
--- gcc/common.opt.orig Wed Aug 29 20:52:36 2012
+++ gcc/common.opt Wed Aug 29 20:52:49 2012
@@ -668,7 +668,7 @@ Common Report Var(flag_pic,2)
Generate position-independent code if possible (large mode)
fPIE
-Common Report Var(flag_pie,2)
+Common Report Var(flag_pie,2) Init(PIE_DEFAULT)
Generate position-independent code for executables if possible (large mode)
fpic