diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libfakegnumalloc/Makefile | 16 | ||||
-rw-r--r-- | lib/libfakegnumalloc/fakegnumalloc.c | 1 | ||||
-rw-r--r-- | lib/libgnumalloc/Makefile | 16 | ||||
-rw-r--r-- | lib/libgnumalloc/cfree.c | 1 |
4 files changed, 34 insertions, 0 deletions
diff --git a/lib/libfakegnumalloc/Makefile b/lib/libfakegnumalloc/Makefile new file mode 100644 index 0000000..c8dbdff --- /dev/null +++ b/lib/libfakegnumalloc/Makefile @@ -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> diff --git a/lib/libfakegnumalloc/fakegnumalloc.c b/lib/libfakegnumalloc/fakegnumalloc.c new file mode 100644 index 0000000..abaf931 --- /dev/null +++ b/lib/libfakegnumalloc/fakegnumalloc.c @@ -0,0 +1 @@ +int fake_a_gnumalloc_lib() { return 1; } diff --git a/lib/libgnumalloc/Makefile b/lib/libgnumalloc/Makefile new file mode 100644 index 0000000..c8dbdff --- /dev/null +++ b/lib/libgnumalloc/Makefile @@ -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> diff --git a/lib/libgnumalloc/cfree.c b/lib/libgnumalloc/cfree.c new file mode 100644 index 0000000..abaf931 --- /dev/null +++ b/lib/libgnumalloc/cfree.c @@ -0,0 +1 @@ +int fake_a_gnumalloc_lib() { return 1; } |