summaryrefslogtreecommitdiff
path: root/debian/patches/illumos-multiarch.diff
blob: 00fa9fc0f8c77c3de4b10548eae51a7e537ccefb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Index: gcc-47/src/gcc/config/i386/t-sol2-64
===================================================================
--- gcc-47.orig/src/gcc/config/i386/t-sol2-64	2012-06-10 18:07:40.302980669 +0000
+++ gcc-47/src/gcc/config/i386/t-sol2-64	2012-06-10 18:12:10.873078450 +0000
@@ -16,6 +16,7 @@
 # along with GCC; see the file COPYING3.  If not see
 # <http://www.gnu.org/licenses/>.
 
-MULTILIB_OPTIONS = m32/m64
-MULTILIB_DIRNAMES = 32 amd64
-MULTILIB_OSDIRNAMES = . amd64
+MULTILIB_OPTIONS = m64/m32
+MULTILIB_DIRNAMES = 64 32
+MULTILIB_OSDIRNAMES = m64=../lib$(call if_multiarch,:x86_64-illumos)
+MULTILIB_OSDIRNAMES+= m32=$(if $(wildcard $(shell echo $(SYSTEM_HEADER_DIR))/../../usr/lib32),../lib32,../lib)$(call if_multiarch,:i386-illumos)