openbsd-ports/lang/gfortran/patches/patch-configure
steven 6f0b523996 import separate port of gfortran 4.2.1, in sync with the base compiler.
meant to be used on archs that have gcc4 in base, this doesn't require a
full gcc build from ports, and provides libgfortran as a subpackage.

idea from espie some months ago.
2010-10-10 17:39:06 +00:00

57 lines
1.9 KiB
Plaintext

$OpenBSD: patch-configure,v 1.1.1.1 2010/10/10 17:39:06 steven Exp $
--- configure.orig Thu Jun 21 01:07:21 2007
+++ configure Sun Jun 20 18:18:43 2010
@@ -904,14 +904,14 @@ extra_host_args=
# these library is used by various programs built for the build
# environment
#
-build_libs="build-libiberty"
+build_libs=
# these tools are built for the build environment
build_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
# these libraries are used by various programs built for the host environment
#
-host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber"
+host_libs="intl mmalloc opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber"
# these tools are built for the host environment
# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
@@ -929,7 +929,7 @@ libgcj="target-libffi \
# these libraries are built for the target environment, and are built after
# the host libraries and the host tools (which may be a cross compiler)
#
-target_libraries="target-libiberty \
+target_libraries=" \
target-libgloss \
target-newlib \
target-libstdc++-v3 \
@@ -1243,6 +1243,8 @@ case "${target}" in
skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
noconfigdirs="$noconfigdirs target-libgloss"
;;
+ *-*-openbsd*)
+ ;;
*-*-netbsd*)
# Skip some stuff on all NetBSD configurations.
noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
@@ -2417,7 +2419,7 @@ CFLAGS="$saved_CFLAGS"
# By default, C is the only stage 1 language.
-stage1_languages=c
+stage1_languages=
# Figure out what language subdirectories are present.
@@ -2480,7 +2482,7 @@ if test -d ${srcdir}/gcc; then
esac
done
- new_enable_languages=c
+ new_enable_languages=
missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
potential_languages=c