diff options
author | bdrewery <bdrewery@FreeBSD.org> | 2016-03-31 17:27:01 +0000 |
---|---|---|
committer | bdrewery <bdrewery@FreeBSD.org> | 2016-03-31 17:27:01 +0000 |
commit | 9fd5efc7e54ec4734354c84ffad10395c3eb8399 (patch) | |
tree | d5b12c42cd3b40d0e261d08cb2bd7296f217f0d9 /libexec | |
parent | 00188ca87c5ab29bd2bbad41295c6a19fb316ce4 (diff) | |
download | FreeBSD-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/Makefile | 3 |
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 |