summaryrefslogtreecommitdiff
path: root/libexec/rtld-elf
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2012-04-06 04:30:22 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2012-04-06 04:30:22 +0000
commitde3e4184649969a840460342124aeef16ec701ad (patch)
tree9b0264286867068fe9a4ca6d85b3dbee95235cbd /libexec/rtld-elf
parentf708ffcb630fcf92c384066ff6c83df4324db3b8 (diff)
MFC r233360:
Centralize the calculation of the top source directory.
Notes
svn path=/stable/9/; revision=233934
Diffstat (limited to 'libexec/rtld-elf')
-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 e00eee14d93f..7a7bb7faf4a1 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