Make a scaffold libgnumalloc.so.#.# unless there is a packeage called

"gnumalloc*"
This commit is contained in:
Poul-Henning Kamp 1996-02-11 18:12:42 +00:00
parent f21428af43
commit ff50d97b0f
4 changed files with 34 additions and 0 deletions

View File

@ -0,0 +1,16 @@
# $Id$
LIB= fakegnumalloc
SRCS= fakegnumalloc.c
NOMAN= 1
afterinstall:
rm -f ${DESTDIR}${LIBDIR}/libfakegnumalloc*.a
for i in ${DESTDIR}/var/db/pkg/gnumalloc* ; \
do if [ -d $$i ] ; then exit 0 ; fi ; done && \
( cd ${DESTDIR}${LIBDIR} && \
rm -rf libgnumalloc* && \
ln -fs libfakegnumalloc.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \
libgnumalloc.so.${SHLIB_MAJOR}.${SHLIB_MINOR} )
.include <bsd.lib.mk>

View File

@ -0,0 +1 @@
int fake_a_gnumalloc_lib() { return 1; }

16
lib/libgnumalloc/Makefile Normal file
View File

@ -0,0 +1,16 @@
# $Id$
LIB= fakegnumalloc
SRCS= fakegnumalloc.c
NOMAN= 1
afterinstall:
rm -f ${DESTDIR}${LIBDIR}/libfakegnumalloc*.a
for i in ${DESTDIR}/var/db/pkg/gnumalloc* ; \
do if [ -d $$i ] ; then exit 0 ; fi ; done && \
( cd ${DESTDIR}${LIBDIR} && \
rm -rf libgnumalloc* && \
ln -fs libfakegnumalloc.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \
libgnumalloc.so.${SHLIB_MAJOR}.${SHLIB_MINOR} )
.include <bsd.lib.mk>

1
lib/libgnumalloc/cfree.c Normal file
View File

@ -0,0 +1 @@
int fake_a_gnumalloc_lib() { return 1; }