openbsd-ports/lang/gfortran/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
389 B
Plaintext

$OpenBSD: patch-gcc_defaults_h,v 1.1 2012/09/01 00:00:33 pascal Exp $
--- gcc/defaults.h.orig Thu Aug 30 11:25:51 2012
+++ gcc/defaults.h Thu Aug 30 11:26:12 2012
@@ -900,4 +900,8 @@ Software Foundation, 51 Franklin Street, Fifth Floor,
#define HARD_REGNO_NREGS_WITH_PADDING(REGNO, MODE) -1
#endif
+#ifndef PIE_DEFAULT
+#define PIE_DEFAULT 0
+#endif
+
#endif /* ! GCC_DEFAULTS_H */