summaryrefslogtreecommitdiffstats
path: root/libexec
diff options
context:
space:
mode:
authorbdrewery <bdrewery@FreeBSD.org>2016-03-31 17:27:01 +0000
committerbdrewery <bdrewery@FreeBSD.org>2016-03-31 17:27:01 +0000
commit9fd5efc7e54ec4734354c84ffad10395c3eb8399 (patch)
treed5b12c42cd3b40d0e261d08cb2bd7296f217f0d9 /libexec
parent00188ca87c5ab29bd2bbad41295c6a19fb316ce4 (diff)
downloadFreeBSD-src-9fd5efc7e54ec4734354c84ffad10395c3eb8399.zip
FreeBSD-src-9fd5efc7e54ec4734354c84ffad10395c3eb8399.tar.gz
WITHOUT_TOOLCHAIN: Fix build of rtld.
MK_TOOLCHAIN==no disables building and installing of pic archives. c_pic.a is still needed for rtld though so force it to build in lib/libc and link directly to the objdir version of it for rtld. Somehow this has been broken since r148725. Sponsored by: EMC / Isilon Storage Division
Diffstat (limited to 'libexec')
-rw-r--r--libexec/rtld-elf/Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/libexec/rtld-elf/Makefile b/libexec/rtld-elf/Makefile
index ae49e9b..60e08af 100644
--- a/libexec/rtld-elf/Makefile
+++ b/libexec/rtld-elf/Makefile
@@ -45,6 +45,9 @@ CFLAGS+= -fvisibility=hidden
.endif
LDFLAGS+= -shared -Wl,-Bsymbolic
LIBADD= c_pic
+.if ${MK_TOOLCHAIN} == "no"
+LDFLAGS+= -L${LIBCDIR}
+.endif
.if ${MACHINE_CPUARCH} == "arm"
# Some of the required math functions (div & mod) are implemented in
OpenPOWER on IntegriCloud