Make a scaffold libgnumalloc.so.#.# unless there is a packeage called
"gnumalloc*"
This commit is contained in:
parent
f21428af43
commit
ff50d97b0f
16
lib/libfakegnumalloc/Makefile
Normal file
16
lib/libfakegnumalloc/Makefile
Normal 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/libfakegnumalloc/fakegnumalloc.c
Normal file
1
lib/libfakegnumalloc/fakegnumalloc.c
Normal file
@ -0,0 +1 @@
|
||||
int fake_a_gnumalloc_lib() { return 1; }
|
16
lib/libgnumalloc/Makefile
Normal file
16
lib/libgnumalloc/Makefile
Normal 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
1
lib/libgnumalloc/cfree.c
Normal file
@ -0,0 +1 @@
|
||||
int fake_a_gnumalloc_lib() { return 1; }
|
Loading…
Reference in New Issue
Block a user