Browse Source

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.

Manuel Novoa III 19 years ago
parent
commit
a8afc0fd4c
1 changed files with 3 additions and 0 deletions
  1. 3 0
      Makefile

+ 3 - 0
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