summaryrefslogtreecommitdiffstats
path: root/libexec
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2012-03-23 12:10:12 +0000
committerkib <kib@FreeBSD.org>2012-03-23 12:10:12 +0000
commita881ddc2779ff6601d6de1bd0801d6b044c3aba9 (patch)
treefde794fa75faebc24fb73bf0b76d6900972a40a4 /libexec
parent6355fe9a5c9d3dd34df91e194bb93b4744804ae6 (diff)
downloadFreeBSD-src-a881ddc2779ff6601d6de1bd0801d6b044c3aba9.zip
FreeBSD-src-a881ddc2779ff6601d6de1bd0801d6b044c3aba9.tar.gz
Centralize the calculation of the top source directory. This
simplifies the build of rtld with partial checkout, allowing to override only one place to reference other tree. Submitted by: bde MFC after: 2 weeks
Diffstat (limited to 'libexec')
-rw-r--r--libexec/rtld-elf/Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/libexec/rtld-elf/Makefile b/libexec/rtld-elf/Makefile
index e00eee1..7a7bb7f 100644
--- a/libexec/rtld-elf/Makefile
+++ b/libexec/rtld-elf/Makefile
@@ -9,8 +9,9 @@ SRCS= rtld_start.S \
malloc.c xmalloc.c debug.c libmap.c
MAN= rtld.1
CSTD?= gnu99
+TOPSRCDIR= ${.CURDIR}/../..
CFLAGS+= -Wall -DFREEBSD_ELF -DIN_RTLD
-CFLAGS+= -I${.CURDIR}/../../lib/csu/common
+CFLAGS+= -I${TOPSRCDIR}/lib/csu/common
.if exists(${.CURDIR}/${MACHINE_ARCH})
RTLD_ARCH= ${MACHINE_ARCH}
.else
@@ -42,7 +43,7 @@ DPADD= ${LIBC_PIC}
LDADD= -lc_pic -lssp_nonshared
.if ${MK_SYMVER} == "yes"
-LIBCDIR= ${.CURDIR}/../../lib/libc
+LIBCDIR= ${TOPSRCDIR}/lib/libc
VERSION_DEF= ${LIBCDIR}/Versions.def
SYMBOL_MAPS= ${.CURDIR}/Symbol.map
VERSION_MAP= Version.map
OpenPOWER on IntegriCloud