openbsd-ports/lang/gfortran/patches/patch-gcc_opts_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
397 B
Plaintext

$OpenBSD: patch-gcc_opts_c,v 1.1 2012/09/01 00:00:33 pascal Exp $
--- gcc/opts.c.orig Thu Aug 30 11:26:20 2012
+++ gcc/opts.c Thu Aug 30 11:26:44 2012
@@ -564,6 +564,8 @@ decode_options (unsigned int argc, const char **argv)
handle_options (argc, argv, lang_mask);
+ if (flag_pic || profile_flag)
+ flag_pie = 0;
if (flag_pie)
flag_pic = flag_pie;
if (flag_pic && !flag_pie)