mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-27 07:02:42 +00:00
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
This commit is contained in:
parent
c4563b16f5
commit
c0f5aeb032
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=297461
@ -5,6 +5,9 @@ SHLIBDIR?= /lib
|
||||
|
||||
.include <src.opts.mk>
|
||||
|
||||
# Force building of libc_pic.a
|
||||
MK_TOOLCHAIN= yes
|
||||
|
||||
LIBC_SRCTOP?= ${.CURDIR}
|
||||
|
||||
# Pick the current architecture directory for libc. In general, this is
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user