aboutsummaryrefslogtreecommitdiff
path: root/Makeconfig
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@suse.de>2013-03-18 12:44:47 +0100
committerAndreas Schwab <schwab@suse.de>2013-03-19 12:07:26 +0100
commitaaa8cb4b43511c62b11ac6f10e9beea3d5035a68 (patch)
tree19ca0e195c46f07ba377a8fc79d19048a75cd61e /Makeconfig
parent5cebee5db0e891a91d947ef6015f1425fd2fd658 (diff)
downloadglibc-aaa8cb4b43511c62b11ac6f10e9beea3d5035a68.tar
glibc-aaa8cb4b43511c62b11ac6f10e9beea3d5035a68.tar.gz
glibc-aaa8cb4b43511c62b11ac6f10e9beea3d5035a68.tar.bz2
glibc-aaa8cb4b43511c62b11ac6f10e9beea3d5035a68.zip
Add support for rtld directory different from slib directory
Diffstat (limited to 'Makeconfig')
-rw-r--r--Makeconfig10
1 files changed, 8 insertions, 2 deletions
diff --git a/Makeconfig b/Makeconfig
index 6c8891827e..70deb1e182 100644
--- a/Makeconfig
+++ b/Makeconfig
@@ -151,12 +151,18 @@ libdir = $(exec_prefix)/lib
endif
inst_libdir = $(install_root)$(libdir)
-# Where to install the shared library and dynamic linker.
+# Where to install the shared library.
ifndef slibdir
slibdir = $(exec_prefix)/lib
endif
inst_slibdir = $(install_root)$(slibdir)
+# Where to install the dynamic linker.
+ifndef rtlddir
+rtlddir = $(slibdir)
+endif
+inst_rtlddir = $(install_root)$(rtlddir)
+
# Prefix to put on files installed in $(libdir). For libraries `libNAME.a',
# the prefix is spliced between `lib' and the name, so the linker switch
# `-l$(libprefix)NAME' finds the library; for other files the prefix is
@@ -441,7 +447,7 @@ endif
endif
ifeq (yes,$(build-shared))
ifndef rtld-LDFLAGS
-rtld-LDFLAGS = -Wl,-dynamic-linker=$(slibdir)/$(rtld-installed-name)
+rtld-LDFLAGS = -Wl,-dynamic-linker=$(rtlddir)/$(rtld-installed-name)
endif
ifndef rtld-tests-LDFLAGS
ifeq (yes,$(build-hardcoded-path-in-tests))