/usr/src/gcc-4.9/debian/patches/config-ml.diff is in gcc-4.9-source 4.9.3-13ubuntu2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 | # DP: - Disable some biarch libraries for biarch builds.
# DP: - Fix multilib builds on kernels which don't support all multilibs.
Index: b/src/config-ml.in
===================================================================
--- a/src/config-ml.in
+++ b/src/config-ml.in
@@ -467,6 +467,25 @@ powerpc*-*-* | rs6000*-*-*)
;;
esac
+if [ -z "$biarch_multidir_names" ]; then
+ biarch_multidir_names="libiberty libstdc++-v3 libgfortran libmudflap libssp libffi libobjc libgomp"
+ echo "WARNING: biarch_multidir_names is unset. Use default value:"
+ echo " $biarch_multidir_names"
+fi
+ml_srcbase=`basename $ml_realsrcdir`
+old_multidirs="${multidirs}"
+multidirs=""
+for x in ${old_multidirs}; do
+ case " $x " in
+ " 32 "|" n32 "|" x32 "|" 64 "|" hf "|" sf "|" m4-nofpu ")
+ case "$biarch_multidir_names" in
+ *"$ml_srcbase"*) multidirs="${multidirs} ${x}" ;;
+ esac
+ ;;
+ *) multidirs="${multidirs} ${x}" ;;
+ esac
+done
+
# Remove extraneous blanks from multidirs.
# Tests like `if [ -n "$multidirs" ]' require it.
multidirs=`echo "$multidirs" | sed -e 's/^[ ][ ]*//' -e 's/[ ][ ]*$//' -e 's/[ ][ ]*/ /g'`
@@ -872,9 +891,20 @@ if [ -n "${multidirs}" ] && [ -z "${ml_n
fi
fi
+ ml_configure_args=
+ for arg in ${ac_configure_args}
+ do
+ case $arg in
+ *CC=*) ml_configure_args=${ml_config_env} ;;
+ *CXX=*) ml_configure_args=${ml_config_env} ;;
+ *GCJ=*) ml_configure_args=${ml_config_env} ;;
+ *) ;;
+ esac
+ done
+
if eval ${ml_config_env} ${ml_config_shell} ${ml_recprog} \
--with-multisubdir=${ml_dir} --with-multisrctop=${multisrctop} \
- ${ac_configure_args} ${ml_config_env} ${ml_srcdiroption} ; then
+ ${ac_configure_args} ${ml_configure_args} ${ml_host_arg} ${ml_srcdiroption} ; then
true
else
exit 1
Index: b/src/libstdc++-v3/include/Makefile.am
===================================================================
--- a/src/libstdc++-v3/include/Makefile.am
+++ b/src/libstdc++-v3/include/Makefile.am
@@ -844,8 +844,9 @@ c_compatibility_headers_extra =
endif
host_srcdir = ${glibcxx_srcdir}/$(OS_INC_SRCDIR)
-host_builddir = ./${host_alias}/bits
-host_installdir = ${gxx_include_dir}/${host_alias}$(MULTISUBDIR)/bits
+default_host_alias = @default_host_alias@
+host_builddir = ./${default_host_alias}/bits
+host_installdir = ${gxx_include_dir}/${default_host_alias}$(MULTISUBDIR)/bits
host_headers = \
${host_srcdir}/ctype_base.h \
${host_srcdir}/ctype_inline.h \
@@ -1071,6 +1072,7 @@ stamp-profile-impl: ${profile_impl_heade
stamp-${host_alias}:
@-mkdir -p ${host_builddir}
@-mkdir -p ${host_builddir}/../ext
+ @test ${default_host_alias} = ${host_alias} || ln -sf ${default_host_alias} ${host_alias}
@$(STAMP) stamp-${host_alias}
# Host includes static.
Index: b/src/libstdc++-v3/include/Makefile.in
===================================================================
--- a/src/libstdc++-v3/include/Makefile.in
+++ b/src/libstdc++-v3/include/Makefile.in
@@ -205,6 +205,7 @@ builddir = @builddir@
check_msgfmt = @check_msgfmt@
datadir = @datadir@
datarootdir = @datarootdir@
+default_host_alias = @default_host_alias@
docdir = @docdir@
dvidir = @dvidir@
enable_shared = @enable_shared@
@@ -1105,8 +1106,8 @@ profile_impl_headers = \
# For --enable-cheaders=c_std
@GLIBCXX_C_HEADERS_COMPATIBILITY_TRUE@c_compatibility_headers_extra = ${c_compatibility_headers}
host_srcdir = ${glibcxx_srcdir}/$(OS_INC_SRCDIR)
-host_builddir = ./${host_alias}/bits
-host_installdir = ${gxx_include_dir}/${host_alias}$(MULTISUBDIR)/bits
+host_builddir = ./${default_host_alias}/bits
+host_installdir = ${gxx_include_dir}/${default_host_alias}$(MULTISUBDIR)/bits
host_headers = \
${host_srcdir}/ctype_base.h \
${host_srcdir}/ctype_inline.h \
@@ -1490,6 +1491,7 @@ stamp-profile-impl: ${profile_impl_heade
stamp-${host_alias}:
@-mkdir -p ${host_builddir}
@-mkdir -p ${host_builddir}/../ext
+ @test ${default_host_alias} = ${host_alias} || ln -sf ${default_host_alias} ${host_alias}
@$(STAMP) stamp-${host_alias}
# Host includes static.
Index: b/src/libstdc++-v3/configure.ac
===================================================================
--- a/src/libstdc++-v3/configure.ac
+++ b/src/libstdc++-v3/configure.ac
@@ -476,6 +476,16 @@ else
multilib_arg=
fi
+AC_ARG_WITH(default-host-alias,
+[AS_HELP_STRING([--with-default-host-alias=TRIPLET],
+ [specifies host triplet used for the default multilib build])],
+[case "${withval}" in
+yes) AC_MSG_ERROR(bad value ${withval} given for default host triplet) ;;
+no) default_host_alias='${host_alias}' ;;
+*) default_host_alias=${withval} ;;
+esac],[default_host_alias='${host_alias}'])
+AC_SUBST(default_host_alias)
+
# Export all the install information.
GLIBCXX_EXPORT_INSTALL_INFO
|