From 03d8d52a325c4885b0846b6b1e7cb2b31333d2cc Mon Sep 17 00:00:00 2001 From: phk Date: Sun, 11 Feb 1996 18:12:42 +0000 Subject: Make a scaffold libgnumalloc.so.#.# unless there is a packeage called "gnumalloc*" --- lib/libfakegnumalloc/Makefile | 16 ++++++++++++++++ lib/libfakegnumalloc/fakegnumalloc.c | 1 + lib/libgnumalloc/Makefile | 16 ++++++++++++++++ lib/libgnumalloc/cfree.c | 1 + 4 files changed, 34 insertions(+) create mode 100644 lib/libfakegnumalloc/Makefile create mode 100644 lib/libfakegnumalloc/fakegnumalloc.c create mode 100644 lib/libgnumalloc/Makefile create mode 100644 lib/libgnumalloc/cfree.c (limited to 'lib') 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 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 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; } -- cgit v1.1