summaryrefslogtreecommitdiffstats
path: root/lib/libgnumalloc
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1996-09-27 06:58:05 +0000
committerpeter <peter@FreeBSD.org>1996-09-27 06:58:05 +0000
commitadd80add7caa57839ad501d78e1f78311f9adfbb (patch)
treecb0ec4677ace87f53ddc89e09d586e44b08d0aa1 /lib/libgnumalloc
parentff1dd074e9925955bae5d9466eb2d8914760e018 (diff)
downloadFreeBSD-src-add80add7caa57839ad501d78e1f78311f9adfbb.zip
FreeBSD-src-add80add7caa57839ad501d78e1f78311f9adfbb.tar.gz
Repository copy libfakegnumalloc to libgnumalloc and remove the symlink
stuff and detection for the "gnumalloc" port which doesn't exist and nobody has cared enough about for the past 6 months or so to implement. As has been pointed out to me (quite a few times) in email, the people that had been bitten by the changes had failed to follow the instructions about updating /etc/rc. Bruce also pointed out that after my last commit, it was no longer removing /usr/lib/libgnumalloc.so.2.0 as it should have been. Hopefully this (and the comments in the Makefile) should defuse the problem a bit.
Diffstat (limited to 'lib/libgnumalloc')
-rw-r--r--lib/libgnumalloc/Makefile25
-rw-r--r--lib/libgnumalloc/cfree.c11
2 files changed, 17 insertions, 19 deletions
diff --git a/lib/libgnumalloc/Makefile b/lib/libgnumalloc/Makefile
index 4a06bbd..f461027 100644
--- a/lib/libgnumalloc/Makefile
+++ b/lib/libgnumalloc/Makefile
@@ -1,20 +1,23 @@
-# $Id: Makefile,v 1.5 1996/09/19 09:36:43 peter Exp $
+# $Id: Makefile,v 1.6 1996/09/26 14:22:32 peter Exp $
-LIB= fakegnumalloc
+LIB= gnumalloc
SHLIBDIR= ${LIBDIR}/compat
INTERNALLIB= yes # Do not build or install lib*.a
SHLIB_MAJOR= 2
SHLIB_MINOR= 0
-SRCS= fakegnumalloc.c
+SRCS= cfree.c
-afterinstall:
- for i in ${DESTDIR}/var/db/pkg/gnumalloc* ; do \
- if [ -d $$i ] ; then exit 0 ; fi ; \
- done && \
- ( cd ${DESTDIR}${SHLIBDIR} && \
- rm -f libgnumalloc.so.${SHLIB_MAJOR}.${SHLIB_MINOR} && \
- ln -fs libfakegnumalloc.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \
- libgnumalloc.so.${SHLIB_MAJOR}.${SHLIB_MINOR} )
+#
+# Before complaining about this, please *double-check* that you have
+# updated the ldconfig path in /etc/rc to include /usr/lib/compat that
+# was added in src/etc/rc rev 1.98.
+# This is so that programs that use autoconf will not "detect" -lgnumalloc
+# and continue to propagate the bogosity. The ldconfig path fix will enable
+# you to run programs that were linked with -lgnumalloc (such as XFree86).
+#
+beforeinstall:
+ rm -f ${DESTDIR}${LIBDIR}/libgnumalloc.a
+ rm -f ${DESTDIR}${LIBDIR}/libgnumalloc.so.${SHLIB_MAJOR}.${SHLIB_MINOR}
.include <bsd.lib.mk>
diff --git a/lib/libgnumalloc/cfree.c b/lib/libgnumalloc/cfree.c
index 4554903..5191fd6 100644
--- a/lib/libgnumalloc/cfree.c
+++ b/lib/libgnumalloc/cfree.c
@@ -1,10 +1,5 @@
-int
-fake_a_gnumalloc_lib()
+void
+cfree(void *foo)
{
-return 1;
-}
-
-void cfree(void *foo)
-{
-free(foo);
+ free(foo);
}
OpenPOWER on IntegriCloud