summaryrefslogtreecommitdiff
path: root/gcc/config/sparc/t-linux64
diff options
context:
space:
mode:
authordoko <doko@138bc75d-0d04-0410-961f-82ee72b054a4>2010-10-04 16:51:59 +0000
committerdoko <doko@138bc75d-0d04-0410-961f-82ee72b054a4>2010-10-04 16:51:59 +0000
commit7b7147d6f9650e73977265c7d3db85b48eca63d8 (patch)
tree497140ae3db1671b3aecda32be674d18b18ac198 /gcc/config/sparc/t-linux64
parent5abb9721049b4ec8dae176238db943b668b2b1a5 (diff)
downloadgcc-7b7147d6f9650e73977265c7d3db85b48eca63d8.tar.gz
2010-10-04 Matthias Klose <doko@ubuntu.com>
* config/sparc/t-linux64 (MULTILIB_OSDIRNAMES): Use ../lib32 as the multilib osdirname if it exists. * config/s390/t-linux64 (MULTILIB_OSDIRNAMES): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@164947 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/sparc/t-linux64')
-rw-r--r--gcc/config/sparc/t-linux649
1 files changed, 8 insertions, 1 deletions
diff --git a/gcc/config/sparc/t-linux64 b/gcc/config/sparc/t-linux64
index 67acb7e1ea6..97c28ba2233 100644
--- a/gcc/config/sparc/t-linux64
+++ b/gcc/config/sparc/t-linux64
@@ -17,9 +17,16 @@
# along with GCC; see the file COPYING3. If not see
# <http://www.gnu.org/licenses/>.
+# On Debian, Ubuntu and other derivative distributions, the 32bit libraries
+# are found in /lib32 and /usr/lib32, /lib64 and /usr/lib64 are symlinks to
+# /lib and /usr/lib, while other distributions install libraries into /lib64
+# and /usr/lib64. The LSB does not enforce the use of /lib64 and /usr/lib64,
+# it doesn't tell anything about the 32bit libraries on those systems. Set
+# MULTILIB_OSDIRNAMES according to what is found on the target.
+
MULTILIB_OPTIONS = m64/m32
MULTILIB_DIRNAMES = 64 32
-MULTILIB_OSDIRNAMES = ../lib64 ../lib
+MULTILIB_OSDIRNAMES = ../lib64 $(if $(wildcard $(shell echo $(SYSTEM_HEADER_DIR))/../../usr/lib32),../lib32,../lib)
LIBGCC = stmp-multilib
INSTALL_LIBGCC = install-multilib