summaryrefslogtreecommitdiffstats
path: root/recipes/termcap/termcap-2.0.8/012_all_libtermcap-compat-2.0.8-fPIC.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/termcap/termcap-2.0.8/012_all_libtermcap-compat-2.0.8-fPIC.patch')
-rw-r--r--recipes/termcap/termcap-2.0.8/012_all_libtermcap-compat-2.0.8-fPIC.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/recipes/termcap/termcap-2.0.8/012_all_libtermcap-compat-2.0.8-fPIC.patch b/recipes/termcap/termcap-2.0.8/012_all_libtermcap-compat-2.0.8-fPIC.patch
new file mode 100644
index 0000000000..c90229ec58
--- /dev/null
+++ b/recipes/termcap/termcap-2.0.8/012_all_libtermcap-compat-2.0.8-fPIC.patch
@@ -0,0 +1,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 \