[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[patches] [PATCH]: Don't install libpthread_pic.{a, map} to fix mklibs.



Hello,

This patch removes installation of libpthread_pic.a and libpthread_pic.map, so that mklibs won't try to reduce libpthread.so.

The issue is that libpthread.so cannot be reduced reliably on m68k.


OK for trunk, 2.5, 2.6 and 2.7 branches?

--
Maxim
2008-03-28  Maxim Kuvyrkov  <maxim@xxxxxxxxxxxxxxxx>

	* Makerules (install-lib): Don't install libpthread_pic.a.
	(install-map): Don't install libpthread_pic.map.
Index: Makerules
===================================================================
--- Makerules	(revision 197643)
+++ Makerules	(working copy)
@@ -916,10 +916,13 @@
 
 # Install the _pic.a files for versioned libraries, and corresponding
 # .map files.
+# libpthread_pic.a breaks mklibs, so don't install it and its map.
 install-lib := $(install-lib) $(install-lib.so-versioned:%.so=%_pic.a)
+install-lib := $(filter-out libpthread_pic.a,$(install-lib))
 ifeq ($(versioning),yes)
 install-map := $(patsubst %.so,%.map,\
 			$(foreach L,$(install-lib.so-versioned),$(notdir $L)))
+install-map := $(filter-out libpthread.map,$(install-map))
 ifndef subdir
 install-map := $(install-map) libc.map
 endif