summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-09-22 03:04:19 +0000
committerMike Frysinger <vapier@gentoo.org>2005-09-22 03:04:19 +0000
commitc12b5f415798001a303145de0907a24968710a19 (patch)
treeb842e4754a8e4de4a3cb98f96dce5e29942c36f1 /Makefile
parent178be753686094a0a998ab898e1f13d96626fbc9 (diff)
dont screw around with lib/ if it doesnt exist
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index e7aafc3ab..53d1c63aa 100644
--- a/Makefile
+++ b/Makefile
@@ -249,10 +249,12 @@ ifeq ($(strip $(PTHREADS_DEBUG_SUPPORT)),y)
endif
# # If we build shared libraries then the static libs are PIC...
# # Make _pic.a symlinks to make mklibs.py and similar tools happy.
+ if [ -d lib ] ; then \
for i in `find lib/ -type f -name '*.a' | sed -e 's/lib\///'` ; do \
$(LN) -sf $$i $(PREFIX)$(DEVEL_PREFIX)lib/`echo $$i \
| sed -e 's/\.a$$/_pic.a/'`; \
- done;
+ done ; \
+ fi
# Ugh!!! Remember that libdl.a and libdl_pic.a are different. Since
# libdl is pretty small, and not likely to benefit from mklibs.py and
# similar, lets just remove libdl_pic.a and avoid the issue