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