On 10/22/12 02:40, Brian Callahan wrote:
> Hi ports --
> 
> lang/g77 build fails nearly immediately on mips64el since adding the
> patch for PIE_DEFAULT=1. Below removes PIE just for mips64el. It
> builds/installs/works just fine without the PIE_DEFAULT=1.
> 
> Thanks.
> 
> ~Brian
> 
> Index: patches/patch-gcc_config_gcc
> ===================================================================
> RCS file: /cvs/ports/lang/g77/patches/patch-gcc_config_gcc,v
> retrieving revision 1.1
> diff -u -p -r1.1 patch-gcc_config_gcc
> --- patches/patch-gcc_config_gcc    1 Sep 2012 00:00:32 -0000    1.1
> +++ patches/patch-gcc_config_gcc    22 Oct 2012 01:35:23 -0000
> @@ -1,6 +1,6 @@
>  $OpenBSD: patch-gcc_config_gcc,v 1.1 2012/09/01 00:00:32 pascal Exp $
> ---- gcc/config.gcc.orig    Sat May 22 18:18:42 2010
> -+++ gcc/config.gcc    Fri Aug 31 18:22:31 2012
> +--- gcc/config.gcc.orig    Sat May 22 12:18:42 2010
> ++++ gcc/config.gcc    Sun Oct 21 20:48:05 2012
>  @@ -1184,6 +1184,7 @@ i[34567]86-*-openbsd*)
>       gnu_ld=yes
>         ;;
> @@ -9,15 +9,6 @@ $OpenBSD: patch-gcc_config_gcc,v 1.1 201
>       tm_file="i386/biarch64.h i386/i386.h i386/unix.h i386/att.h
> dbxelf.h elfos.h openbsd.h openbsd-libpthread.h i386/x86-64.h
> i386/openbsd64.h"
>       tm_file="${tm_file} exec-stack.h"
>       tmake_file="t-libc-ok t-openbsd i386/t-openbsd"
> -@@ -1935,7 +1936,7 @@ mips*-*-linux*)                # Linux MIPS,
> either endian.
> -     tmake_file="t-slibgcc-elf-ver t-linux mips/t-linux"
> -     ;;
> - mips*-*-openbsd*)
> --    target_cpu_default="MASK_GAS|MASK_ABICALLS"
> -+    target_cpu_default="MASK_GAS|MASK_ABICALLS PIE_DEFAULT=1"
> -     tm_file="elfos.h ${tm_file}"
> -     case $machine in
> -         mips64*-*)
>  @@ -2460,6 +2461,7 @@ sparc-*-openbsd*)
>       use_collect2=yes
>       ;;
> 
> 
Have you tried this with the other patches for lang/g77 on ports@ and
run the regression tests?





Reply via email to