summaryrefslogtreecommitdiffstats
path: root/recipes/termcap/termcap-2.0.8/012_all_libtermcap-compat-2.0.8-fPIC.patch
blob: c90229ec580ffd4259dbb0a5347db4f6f4448a50 (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
25
26
27
28
29
--- Makefile
+++ Makefile
@@ -28,23 +28,18 @@
 prefix=/

 .c.o:
-	$(CC) $(CFLAGS) -c $<
-	$(CC) $(CFLAGS) -fPIC -c $< -o pic/$@
+	$(CC) $(CFLAGS) -fPIC -c $< -o $@

 SRCS = termcap.c tparam.c version.c
 OBJS= $(SRCS:.c=.o)

-all lib: pic .depend $(TARGETS) info
+all lib: .depend $(TARGETS) info

 $(STATIC_LIB): $(OBJS)
	$(AR) $(ARFLAGS) $@ $(OBJS)

 $(SHARED_LIB): $(OBJS)
-	cd pic; \
-	$(CC) -shared -o ../$@ -Wl,-soname,$(SONAME_SHARED_LIB) $(OBJS) -lc
-
-pic:
-	-if [ ! -d pic ]; then mkdir pic; fi
+	$(CC) -shared -o $@ -Wl,-soname,$(SONAME_SHARED_LIB) $(OBJS) -lc

 install: lib install-dirs install-data
	-if [ -f $(prefix)/lib/$(SHARED_LIB) ]; then \