Add our version maps back

This commit is contained in:
Roy Marples 2008-01-06 11:38:37 +00:00
parent 2b54426bd3
commit 62ef80e7f8
5 changed files with 7 additions and 1 deletions

1
src/.gitignore vendored
View File

@ -3,6 +3,7 @@ rc
*.[oa] *.[oa]
*.lo *.lo
*.so *.so
*.So
*.so.* *.so.*
version.h version.h

View File

@ -30,11 +30,15 @@ INCMODE?= 0444
all: ${_LIBS} all: ${_LIBS}
lib${LIB}.a: ${OBJS} ${STATICOBJS} lib${LIB}.a: ${OBJS} ${STATICOBJS}
@${ECHO} building static library $@ @${ECHO} building static library $@
${AR} rc $@ $^ ${AR} rc $@ $^
${RANLIB} $@ ${RANLIB} $@
${SHLIB_NAME}: ${VERSION_MAP}
LDFLAGS+= -Wl,--version-script=${VERSION_MAP}
${SHLIB_NAME}: ${SOBJS} ${SHLIB_NAME}: ${SOBJS}
@${ECHO} building shared library $@ @${ECHO} building shared library $@

View File

@ -5,10 +5,10 @@ LIB= einfo
SHLIB_MAJOR= 1 SHLIB_MAJOR= 1
SRCS= libeinfo.c SRCS= libeinfo.c
INCS= einfo.h INCS= einfo.h
VERSION_MAP= einfo.map
SHLIBDIR= /${LIBNAME} SHLIBDIR= /${LIBNAME}
include $(TOPDIR)/cc.mk include $(TOPDIR)/cc.mk
include $(TOPDIR)/lib.mk include $(TOPDIR)/lib.mk
include $(TOPDIR)/$(TERMCAP).mk include $(TOPDIR)/$(TERMCAP).mk

View File

@ -5,6 +5,7 @@ LIB= rc
SHLIB_MAJOR= 1 SHLIB_MAJOR= 1
SRCS= librc.c librc-daemon.c librc-depend.c librc-misc.c librc-strlist.c SRCS= librc.c librc-daemon.c librc-depend.c librc-misc.c librc-strlist.c
INCS= rc.h INCS= rc.h
VERSION_MAP= rc.map
CPPFLAGS+= -DLIB=\"${LIBNAME}\" CPPFLAGS+= -DLIB=\"${LIBNAME}\"
LDADD+= ${LIBKVM} LDADD+= ${LIBKVM}