openexr: make architecture independent
[oi-userland.git] / components / library / indri / patches / build_also_shared.patch
blob3d188845566611040b936c2f8ba7a871405f6cdb
1 Add support for building shared libraries
2 --- indri-5.4/src/Makefile 2013-09-04 06:16:24.212280233 -0700
3 +++ indri-5.4/src/Makefile 2013-09-04 06:15:35.997458620 -0700
4 @@ -17,6 +17,7 @@
5 # how to make a library from object files
6 $(OBJLIB): $(SPECHEADERS) $(OBJ) $(SPECOBJS)
7 rm -f $@; $(AR) -rs $@ $(OBJ)
8 + $(CC) $(CFLAGS) -shared -o $(OBJLIB:.a=.so).1 -h $(OBJLIB:.a=.so).1 $(OBJ) -Wl,-z -Wl,allextract ../contrib/lemur/obj/liblemur.a -Wl,-z -Wl,allextract ../contrib/antlr/obj/libantlr.a
10 #check this.
11 $(SPECHEADERS): $(QUERYSPEC)
12 @@ -40,6 +41,7 @@
13 install:
14 $(INSTALL_DATA) $(ALLHEADER) $(pkgincludedir)
15 $(AR) -rs $(libdir)/$(INDRILIB) $(OBJ)
16 + cp $(OBJLIB:.a=.so).1 $(libdir)
18 stamp:
19 awk -f ../src/version-stamper "stamp=`date`" ../include/indri/indri-platform.h > ../include/indri/indri-platform.h2