summaryrefslogtreecommitdiffstats
path: root/contrib/libgnurx/P00-mingw-static.patch
blob: a8ea2bb9de6cda78d1c7a365e6e795c3219fe912 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
diff -ur mingw-libgnurx-2.5.1/Makefile.in.orig mingw-libgnurx-2.5.1/Makefile.in
--- mingw-libgnurx-2.5.1/Makefile.in.orig	2007-05-07 15:28:28.000000000 -0400
+++ mingw-libgnurx-2.5.1/Makefile.in	2014-10-11 14:10:50.000000000 -0400
@@ -72,11 +72,20 @@
 libregex.a: libgnurx.dll.a
 	cp -p libgnurx.dll.a $@
 
+libregex.a-static: $(OBJECTS)
+	ar rcu libregex.a $(OBJECTS)
+	ranlib libregex.a
+
 gnurx.lib: libgnurx-$(DLLVERSION).dll
 	$(MSVCLIB) -def:libgnurx.def -out:gnurx.lib
 
 install: install-dll @install_dev@
 
+install-static: libregex.a
+	mkdir -p ${includedir} ${libdir}
+	cp -p ${srcdir}/regex.h ${includedir}
+	cp -p ${srcdir}/libregex.a ${libdir}
+
 install-dll:
 	mkdir -p ${bindir}
 	cp -p $(BINDIST_FILES) ${bindir}