summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManuel Novoa III <mjn3@codepoet.org>2005-02-16 06:38:13 +0000
committerManuel Novoa III <mjn3@codepoet.org>2005-02-16 06:38:13 +0000
commita8afc0fd4ceb3bcb485cd44e82aa2b12bb02e30b (patch)
tree843414633f8a77a9bccc1e8d22516b66e037d923
parentb979ec6f20cc773b153f9e4aaadc5257fd0e6f5c (diff)
Unlike the other static libs, libdl.a and libdl_pic.a are different.
So we need to copy the actual libdl_pic.a or bad things happen when optimizing libdl.so with mklibs.py.
-rw-r--r--Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index b2c173fd5..1390a33a1 100644
--- a/Makefile
+++ b/Makefile
@@ -229,6 +229,9 @@ endif
$(LN) -sf $$i $(PREFIX)$(DEVEL_PREFIX)lib/`echo $$i \
| sed -e 's/\.a$$/_pic.a/'`; \
done;
+ # Ugh!!! Remember that libdl.a and libdl_pic.a are different!
+ rm -f $(PREFIX)$(DEVEL_PREFIX)lib/libdl_pic.a
+ cp -f ldso/libdl/libdl_pic.a $(PREFIX)$(DEVEL_PREFIX)lib/libdl_pic.a
endif