summaryrefslogtreecommitdiff
blob: d192f8ccb961a3e97904bd22040671d5b022b320 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
don't force -static so we get both pic and non-pic objects

https://bugs.gentoo.org/342669

--- a/Makefile.in
+++ b/Makefile.in
@@ -117,12 +117,12 @@
 @SET_MAKE@
 
 %.o: %.c
-	$(LIBTOOL) --tag=CC --mode=compile $(CC) -c $(CFLAGS) $< -o $@
+	$(LIBTOOL) --tag=CC --mode=compile $(CC) -c $(CFLAGS) $< -o $@ -static
 %.o: %.cpp
-	$(LIBTOOL) --tag=CXX --mode=compile $(CXX) -c $(CFLAGS) $< -o $@
+	$(LIBTOOL) --tag=CXX --mode=compile $(CXX) -c $(CFLAGS) $< -o $@ -static
 
 %: %.o
-	$(LIBTOOL) --tag=CC --mode=link $(CC) -o $@ -static \
+	$(LIBTOOL) --tag=CC --mode=link $(CC) -o $@ \
 		$^ $(OBJS) $(LDFLAGS) -lz ${LIBS}
 
 include $(srcdir)/deps