diff options
| author | Daniel Eischen <deischen@FreeBSD.org> | 2006-03-13 00:56:02 +0000 |
|---|---|---|
| committer | Daniel Eischen <deischen@FreeBSD.org> | 2006-03-13 00:56:02 +0000 |
| commit | c053f1f8aca061f643dec3e82787a2a8187d8848 (patch) | |
| tree | 8e6454eb124fa44498fc707e04785c8ac708125e | |
| parent | cce72e8860e207b5be84acb82c75f0e644a60e29 (diff) | |
Notes
| -rw-r--r-- | lib/libc/Makefile | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/libc/Makefile b/lib/libc/Makefile index aea50316e40c..b0780a38afb7 100644 --- a/lib/libc/Makefile +++ b/lib/libc/Makefile @@ -18,6 +18,8 @@ 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: @@ -94,7 +96,19 @@ libkern.${MACHINE_ARCH}:: ${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 |
