diff options
author | Cliff Brake <cbrake@bec-systems.com> | 2010-11-12 00:00:20 -0500 |
---|---|---|
committer | Cliff Brake <cbrake@bec-systems.com> | 2010-11-12 00:00:20 -0500 |
commit | 3c6efe8f8abc16668ca5e9cdf7a46665dac87172 (patch) | |
tree | 642c13416b99e80f0871cdc6668e832e635dfb48 /recipes/termcap/termcap-2.0.8/012_all_libtermcap-compat-2.0.8-fPIC.patch | |
parent | c400c874f2ac9233b8a43a73309b6e7907289c54 (diff) | |
parent | 13fbe7253c95881ede787004a4c3a1c31502e5c6 (diff) | |
download | openembedded-3c6efe8f8abc16668ca5e9cdf7a46665dac87172.tar.gz |
Merge branch 'master' into testing-nexttested_2010-11-12testing
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.patch | 29 |
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 \ |