openbsd-ports/lang/gcc/4.8/patches/patch-configure
pascal 174fb904d7 Import gcc 4.8.
For a full Changelog, see: http://gcc.gnu.org/gcc-4.8/changes.html

Tested by me on amd64, i386 and powerpc and by brad@ on sparc64.

Adds support for -java on powerpc.  -faggressive-loop-optimizations is
disabled by default in the port, and the default debugging format changed
to DWARF2 (instead of 4).

tweaks and ok tobiasu@
2013-04-08 08:20:19 +00:00

49 lines
1.6 KiB
Plaintext

$OpenBSD: patch-configure,v 1.1.1.1 2013/04/08 08:20:24 pascal Exp $
--- configure.orig Tue Jan 15 14:07:56 2013
+++ configure Tue Feb 12 23:47:29 2013
@@ -2757,8 +2757,7 @@ host_libs="intl libiberty opcodes bfd readline tcl tk
host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gprof etc expect dejagnu m4 utils guile fastjar gnattools"
# libgcj represents the runtime libraries only used by gcj.
-libgcj="target-libffi \
- target-zlib \
+libgcj="target-zlib \
target-libjava"
# these libraries are built for the target environment, and are built after
@@ -2778,6 +2777,7 @@ target_libraries="target-libgcc \
target-libquadmath \
target-libgfortran \
target-boehm-gc \
+ target-libffi \
${libgcj} \
target-libobjc \
target-libada \
@@ -3089,7 +3089,7 @@ fi
# Save it here so that, even in case of --enable-libgcj, if the Java
# front-end isn't enabled, we still get libgcj disabled.
-libgcj_saved=$libgcj
+libgcj_saved="target-libffi ${libgcj}"
case $enable_libgcj in
yes)
# If we reset it here, it won't get added to noconfigdirs in the
@@ -3100,7 +3100,7 @@ yes)
no)
# Make sure we get it printed in the list of not supported target libs.
# Don't disable libffi, though, other languages use it.
- noconfigdirs="$noconfigdirs `echo ${libgcj} | sed -e 's/target-libffi//'`"
+ noconfigdirs="$noconfigdirs ${libgcj}"
# Clear libgcj_saved so that even if java is enabled libffi won't be
# built.
libgcj_saved=
@@ -3305,6 +3305,8 @@ case "${target}" in
powerpc-*-freebsd*)
;;
powerpc64-*-freebsd*)
+ ;;
+ powerpc-*-openbsd*)
;;
powerpc*-*-rtems*)
;;