# --- T2-COPYRIGHT-NOTE-BEGIN --- # T2 SDE: package/*/jbigkit/hotfix-shared.patch # Copyright (C) 2004 - 2021 The T2 SDE Project # # This Copyright note is generated by scripts/Create-CopyPatch, # more information can be found in the files COPYING and README. # # This patch file is dual-licensed. It is available under the license the # patched project is licensed under, as long as it is an OpenSource license # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms # of the GNU General Public License as published by the Free Software # Foundation; either version 2 of the License, or (at your option) any later # version. # --- T2-COPYRIGHT-NOTE-END --- I like shared objects ... - Rene Rebe --- jbigkit/libjbig/Makefile.vanilla 2008-10-28 16:31:33.000000000 +0100 +++ jbigkit/libjbig/Makefile 2008-10-28 16:35:33.000000000 +0100 @@ -5,9 +5,9 @@ CC = gcc # Options for the compiler: A high optimization level is suggested -CFLAGS = -g -O -W -Wall -ansi -pedantic # --coverage +CFLAGS = -g -O -W -Wall -ansi -pedantic -fPIC # --coverage -all: libjbig.a libjbig85.a tstcodec tstcodec85 +all: libjbig.a libjbig85.a libjbig.so libjbig85.so tstcodec tstcodec85 tstcodec: tstcodec.o jbig.o jbig_ar.o $(CC) $(CFLAGS) -o tstcodec $+ @@ -25,6 +25,12 @@ ar rc libjbig85.a jbig85.o jbig_ar.o -ranlib libjbig85.a +libjbig.so: jbig.o jbig_ar.o + $(CC) $(CFLAGS) -shared jbig.o jbig_ar.o -o libjbig.so + +libjbig85.so: jbig85.o jbig_ar.o + $(CC) $(CFLAGS) -shared jbig85.o jbig_ar.o -o libjbig85.so + jbig.o: jbig.c jbig.h jbig_ar.h jbig85.o: jbig85.c jbig85.h jbig_ar.h jbig_ar.o: jbig_ar.c jbig_ar.h