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

$OpenBSD: patch-gcc_defaults_h,v 1.1 2012/09/01 00:00:32 pascal Exp $
--- gcc/defaults.h.orig Wed Aug 29 20:53:01 2012
+++ gcc/defaults.h Wed Aug 29 20:53:15 2012
@@ -899,4 +899,8 @@ along with GCC; see the file COPYING3. If not see
#define HARD_REGNO_NREGS_WITH_PADDING(REGNO, MODE) -1
#endif
+#ifndef PIE_DEFAULT
+#define PIE_DEFAULT 0
+#endif
+
#endif /* ! GCC_DEFAULTS_H */