freebsd-ports/textproc/sp/files/patch-af
Chuck Robey 8ae91ecd75 Update sp port to 1.3. Changing the format a bit, too. John Fieber,
the old maintainer, agrees with it.
1999-06-02 21:39:10 +00:00

34 lines
647 B
Plaintext

--- 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 $@