aboutsummaryrefslogtreecommitdiffstats
path: root/math/reed-solomon/files/patch-makefile.in
blob: 7fe4ab89894f3e2f03362ebeef47dc680c600c1f (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
34
35
36
37
--- makefile.in.orig    Wed Jun 29 16:52:23 2005
+++ makefile.in Wed Jun 29 16:57:01 2005
@@ -7,7 +7,7 @@
 VPATH = @srcdir@
 CC=@CC@
 
-CFLAGS=@CFLAGS@ @ARCH_OPTION@ -Wall
+CFLAGS=@CFLAGS@ -fPIC -Wall
 
 LIB=   encode_rs_char.o encode_rs_int.o encode_rs_8.o \
    decode_rs_char.o decode_rs_int.o decode_rs_8.o \
@@ -24,20 +24,17 @@
    gcc -g -o $@ $^
 
 install: all
-   mkdir -p @libdir@ 
-   install -D -m 644 -p librs.a librs.so.@SO_VERSION@ @libdir@
+   $(BSD_INSTALL_DATA) librs.a @libdir@
+   $(BSD_INSTALL_PROGRAM) librs.so.@SO_VERSION@ @libdir@
    (cd @libdir@;ln -f -s librs.so.@SO_VERSION@ librs.so)
-   ldconfig
-   mkdir -p @includedir@
-   install -m 644 -p rs.h @includedir@
-   mkdir -p @mandir@/man3
-   install -m 644 rs.3 @mandir@/man3
+   $(BSD_INSTALL_DATA) rs.h @includedir@
+   $(BSD_INSTALL_MAN) rs.3 @mandir@/man3
 
 librs.a: $(LIB)
    ar rv $@ $^
 
 librs.so.@SO_VERSION@: librs.a
-   gcc -shared -Xlinker -soname=librs.so.@SO_NAME@ -o $@ -Wl,-whole-archive $^ -Wl,-no-whole-archive -lc
+   gcc -shared -fPIC -Xlinker -soname=librs.so.@SO_NAME@ -o $@ -Wl,-whole-archive $^ -Wl,-no-whole-archive -lc
 
 encode_rs_char.o: encode_rs.c
    gcc $(CFLAGS) -c -o $@ $^