aboutsummaryrefslogtreecommitdiffstats
path: root/textproc/sp/files/patch-af
blob: 91722c916b022c429bc6a5952cd9b36b1dd6ba5f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
--- Makefile.comm.orig  Sun Dec 28 06:24:24 1997
+++ Makefile.comm   Wed Jun  2 14:55:44 1999
@@ -3,6 +3,7 @@
  $(DEFINES)
 ALL_CFLAGS=$(CFLAGS) $(DEBUG) $(OPTIMIZE) $(INCLUDE) $(DEFINES)
 MSGGENFLAGS=
+SHFLAGS=-fpic
 CXXDEPGENFLAGS=-MM
 AR=ar
 RANLIB=:
@@ -13,13 +14,19 @@
 PROG=
 PERL=perl
 
-.SUFFIXES: .cxx .c .o .m4 .msg
+.SUFFIXES: .cxx .c .o .so .m4 .msg
 
 .cxx.o:
-   $(CXX) $(ALL_CXXFLAGS) -c $<
+   $(CXX) $(ALL_CXXFLAGS) -c -o $@ $<
+
+.cxx.so:
+   $(CXX) $(ALL_CXXFLAGS) $(SHFLAGS) -c -o $@ $<
 
 .c.o:
-   $(CC) $(ALL_CFLAGS) -c $<
+   $(CC) $(ALL_CFLAGS) -c -o $@ $<
+
+.c.so:
+   $(CC) $(ALL_CFLAGS) $(SHFLAGS) -c -o $@ $<
 
 .m4.cxx:
    rm -f $@