diff options
author | asami <asami@FreeBSD.org> | 1995-07-05 19:43:08 +0800 |
---|---|---|
committer | asami <asami@FreeBSD.org> | 1995-07-05 19:43:08 +0800 |
commit | 8f4d493683e8a3b757031b93379bcda5e56aa5fb (patch) | |
tree | 7921de2e631e80c8245ebfdef7680abd61d51cee /graphics | |
parent | fde5b6afaff0433702453d77f5d02af042a184c3 (diff) | |
download | freebsd-ports-gnome-8f4d493683e8a3b757031b93379bcda5e56aa5fb.tar.gz freebsd-ports-gnome-8f4d493683e8a3b757031b93379bcda5e56aa5fb.tar.zst freebsd-ports-gnome-8f4d493683e8a3b757031b93379bcda5e56aa5fb.zip |
Link with -lgnumalloc. Silence <malloc.h> warning along the way.
Original idea is
----------------
From: Kai Vorma <vode@snakemail.hut.fi>
To: Lars Gerhard Kuehl <lars@elbe.desy.de>
Cc: FreeBSD-hackers@freefall.cdrom.com
Subject: Re: dlmalloc
:
Okay, not faster, but it used memory better. Try xv with standard
malloc, then dlmalloc and finally GNU-malloc. With standard malloc xv
grows until it hits datasize limit (16MB) and dies (usually after 10
or so big jpegs). With dlmalloc xv's VZS was about 15MB after last
picture of that particular set and with GNU malloc it was about 11MB.
:
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/xv/files/patch-ad | 74 |
1 files changed, 74 insertions, 0 deletions
diff --git a/graphics/xv/files/patch-ad b/graphics/xv/files/patch-ad new file mode 100644 index 000000000000..65891c679443 --- /dev/null +++ b/graphics/xv/files/patch-ad @@ -0,0 +1,74 @@ +--- ./Imakefile.org Fri Jan 13 12:24:01 1995 ++++ ./Imakefile Wed Jul 5 03:32:57 1995 +@@ -6,13 +6,15 @@ + /* if, for whatever reason, you're unable to get the JPEG library to compile + * on your machine, *COMMENT OUT* the following line + */ +-#define HaveJpeg ++/* #define HaveJpeg */ ++#define UseInstalledJpeg + + + /* if, for whatever reason, you're unable to get the TIFF library to compile + * on your machine, *COMMENT OUT* the following line + */ +-#define HaveTiff ++/* #define HaveTiff */ ++#define UseInstalledTiff + + + /* if, for whatever reason, you're unable to get the PDS/VICAR support +@@ -119,16 +121,30 @@ + JPEG = -DDOJPEG + JPEGDIR = jpeg + LIBJPEG = $(JPEGDIR)/libjpeg.a ++DEPLIBJPEG = $(LIBJPEG) + JPEGINCLUDE = -I$(JPEGDIR) + #endif + ++#ifdef UseInstalledJpeg ++JPEG = -DDOJPEG ++LIBJPEG = -L/usr/local/lib -ljpeg ++JPEGINCLUDE = -I/usr/local/include ++#endif ++ + #ifdef HaveTiff + TIFF = -DDOTIFF + TIFFDIR = tiff + LIBTIFF = $(TIFFDIR)/libtiff.a ++DEPLIBTIFF = $(LIBTIFF) + TIFFINCLUDE = -I$(TIFFDIR) + #endif + ++#ifdef UseInstalledTiff ++TIFF = -DDOTIFF ++LIBTIFF = -L/usr/local/lib -ltiff ++TIFFINCLUDE = -I/usr/local/include ++#endif ++ + #ifdef HavePDS + PDS = -DDOPDS + #endif +@@ -142,8 +158,8 @@ + #endif + + +-DEPLIBS = $(LIBJPEG) $(LIBTIFF) +-LOCAL_LIBRARIES = $(XLIB) $(DEPLIBS) ++DEPLIBS = $(DEPLIBJPEG) $(DEPLIBTIFF) ++LOCAL_LIBRARIES = $(XLIB) $(LIBJPEG) $(LIBTIFF) -lgnumalloc + + DEFINES= $(SCO) $(UNIX) $(NODIRENT) $(VPRINTF) $(TIMERS) \ + $(HPUX7) $(JPEG) $(TIFF) $(PDS) $(DXWM) $(RAND) \ +--- ./vdcomp.c.org Thu Dec 22 14:34:47 1994 ++++ ./vdcomp.c Wed Jul 5 03:39:26 1995 +@@ -108,7 +108,8 @@ + !defined(bsd43) && \ + !defined(aux) && \ + !defined(__bsdi__) && \ +- !defined(sequent) ++ !defined(sequent) && \ ++ !defined(__FreeBSD__) + + # if defined(hp300) || defined(hp800) || defined(NeXT) + # include <sys/malloc.h> /* it's in 'sys' on HPs and NeXT */ |