diff options
author | smace <smace@FreeBSD.org> | 1998-09-15 23:07:33 +0800 |
---|---|---|
committer | smace <smace@FreeBSD.org> | 1998-09-15 23:07:33 +0800 |
commit | 9434e6f0bbff1446e90456f447fe7614f76884b9 (patch) | |
tree | 5455978e5cff8d2a833465b818392b740c7e3aa0 /graphics/jbigkit | |
parent | 6da525fde3d17300573b478127ee5db34f1ddce5 (diff) | |
download | freebsd-ports-gnome-9434e6f0bbff1446e90456f447fe7614f76884b9.tar.gz freebsd-ports-gnome-9434e6f0bbff1446e90456f447fe7614f76884b9.tar.zst freebsd-ports-gnome-9434e6f0bbff1446e90456f447fe7614f76884b9.zip |
Make jbigkit build on a non-elf system
Diffstat (limited to 'graphics/jbigkit')
-rw-r--r-- | graphics/jbigkit/files/patch-ab | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/graphics/jbigkit/files/patch-ab b/graphics/jbigkit/files/patch-ab index 904e6ee1b6fd..132fd3c2dda7 100644 --- a/graphics/jbigkit/files/patch-ab +++ b/graphics/jbigkit/files/patch-ab @@ -1,5 +1,5 @@ --- libjbig/Makefile.orig Fri Apr 10 20:33:27 1998 -+++ libjbig/Makefile Mon Sep 14 16:45:39 1998 ++++ libjbig/Makefile Tue Sep 15 10:03:50 1998 @@ -5,9 +5,9 @@ CC = gcc @@ -12,13 +12,17 @@ tstcodec: tstcodec.c jbig.c jbig.h jbig_tab.o $(CC) $(CFLAGS) -o tstcodec -DTEST_CODEC tstcodec.c jbig.c \ -@@ -18,10 +18,21 @@ +@@ -18,10 +18,25 @@ ar rc libjbig.a jbig.o jbig_tab.o ranlib libjbig.a +libjbig.so.1: jbig.so jbig_tab.so + rm -f libjbig.so.1 ++.if defined(PORTOBJFORMAT) && ${PORTOBJFORMAT} == elf + $(CC) -o ${.TARGET} -shared -Wl,-soname,${.TARGET} ${.ALLSRC} ++.else ++ ld -Bshareable -o ${.TARGET} ${.ALLSRC} ++.endif + ln -sf libjbig.so.1 libjbig.so + jbig.o: jbig.c jbig.h |