summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Lecher <jlec@gentoo.org>2012-10-24 14:48:56 +0000
committerJustin Lecher <jlec@gentoo.org>2012-10-24 14:48:56 +0000
commitc6b4d69077fa1dbd90d59b574737cd7153ccfdd5 (patch)
tree80207ad03f72275ff90eb1b57f1946476bbe979c /sci-libs/inchi/files
parentBump the l10n to 3.5.7. (diff)
downloadhistorical-c6b4d69077fa1dbd90d59b574737cd7153ccfdd5.tar.gz
historical-c6b4d69077fa1dbd90d59b574737cd7153ccfdd5.tar.bz2
historical-c6b4d69077fa1dbd90d59b574737cd7153ccfdd5.zip
sci-libs/inchi: Imported bug fix for #439440 (Add USE=static-libs), kindly prepared by Reinis Danne
Package-Manager: portage-2.2.0_alpha141/cvs/Linux x86_64 Manifest-Sign-Key: 0x70EB7916
Diffstat (limited to 'sci-libs/inchi/files')
-rw-r--r--sci-libs/inchi/files/inchi-1.04-static.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/sci-libs/inchi/files/inchi-1.04-static.patch b/sci-libs/inchi/files/inchi-1.04-static.patch
new file mode 100644
index 000000000000..a367c153824a
--- /dev/null
+++ b/sci-libs/inchi/files/inchi-1.04-static.patch
@@ -0,0 +1,26 @@
+--- INCHI_API/gcc_so_makefile/makefile 2012-05-13 14:52:53.587632989 +0300
++++ INCHI_API/gcc_so_makefile/makefile 2012-05-13 14:52:11.668635419 +0300
+@@ -209,6 +209,14 @@
+
+ else
+
++ifdef STATIC
++
++libinchi.a: $(INCHI_LIB_OBJS)
++ $(AR) rcs $(INCHI_LIB_PATHNAME).a $(INCHI_LIB_OBJS)
++ $(RANLIB) $(INCHI_LIB_PATHNAME).a
++
++else
++
+ $(INCHI_LIB_PATHNAME).so$(VERSION): $(INCHI_LIB_OBJS)
+ $(SHARED_LINK) $(SHARED_LINK_PARM) -o \
+ $(INCHI_LIB_PATHNAME).so$(VERSION) \
+@@ -219,6 +226,8 @@
+
+ endif
+
++endif
++
+ # === InChI Library compile rule =========
+
+ %.o: $(P_LIBR)%.c