summaryrefslogtreecommitdiffstats
path: root/lib/libc/Makefile
diff options
context:
space:
mode:
authordeischen <deischen@FreeBSD.org>2006-03-16 15:16:23 +0000
committerdeischen <deischen@FreeBSD.org>2006-03-16 15:16:23 +0000
commitcb9cc95c77198e502e3efcc710c904dfdc7ec9cf (patch)
tree157d532b25a85f7b2764d0322f3fb94182806dc9 /lib/libc/Makefile
parentf015ed90ef10b6441ebea1eeea6b674292b2a409 (diff)
downloadFreeBSD-src-cb9cc95c77198e502e3efcc710c904dfdc7ec9cf.zip
FreeBSD-src-cb9cc95c77198e502e3efcc710c904dfdc7ec9cf.tar.gz
Allow bsd.lib.mk to generate the symbol version map.
Diffstat (limited to 'lib/libc/Makefile')
-rw-r--r--lib/libc/Makefile20
1 files changed, 6 insertions, 14 deletions
diff --git a/lib/libc/Makefile b/lib/libc/Makefile
index 96730fe..bfbfc33 100644
--- a/lib/libc/Makefile
+++ b/lib/libc/Makefile
@@ -18,8 +18,6 @@ CFLAGS+=-I${.CURDIR}/${MACHINE_ARCH}
CLEANFILES+=tags
INSTALL_PIC_ARCHIVE=
PRECIOUSLIB=
-VERSION_DEF=Versions.def
-VERSION_MAP=Version.map
# Define (empty) variables so that make doesn't give substitution
# errors if the included makefiles don't change these:
@@ -68,6 +66,12 @@ CFLAGS+= -DHESIOD
CFLAGS+= -DNO_FLOATING_POINT
.endif
+.if defined(SYMVER_ENABLED)
+VERSION_DEF=${.CURDIR}/Versions.def
+SYMBOL_MAPS=${SYM_MAPS}
+CFLAGS+= -DSYMBOL_VERSIONING
+.endif
+
# If there are no machine dependent sources, append all the
# machine-independent sources:
.if empty(MDSRCS)
@@ -98,20 +102,8 @@ libkern.${MACHINE_ARCH}:: ${KMSRCS}
.if defined(KMSRCS) && !empty(KMSRCS)
cp -p ${.ALLSRC} ${DESTDIR}/sys/libkern/${MACHINE_ARCH}
.endif
-
-${VERSION_MAP}: ${SYM_MAPS}
- awk -v vfile=${.CURDIR}/Versions.def -f ${.CURDIR}/version_gen.awk \
- ${SYM_MAPS} > ${.TARGET}
-
.include <bsd.lib.mk>
# Disable warnings in contributed sources.
CWARNFLAGS:= ${.IMPSRC:Ngdtoa_*.c:C/^.+$/${CWARNFLAGS}/}
-
-.if defined(SYMVER_ENABLED)
-CFLAGS+= -DSYMBOL_VERSIONING
-LDFLAGS= -Wl,--version-script=${.OBJDIR}/${VERSION_MAP}
-
-${SHLIB_NAME}: ${VERSION_MAP}
-.endif
OpenPOWER on IntegriCloud