Fwd: Re: Fwd: Re: [PATCH] libkdeinit symbol pruning

David Faure <[email protected]>
Newsgroups gmane.comp.kde.devel.optimize
Organization KDE
Message-ID <[email protected]>
----------  Forwarded Message  ----------

Subject: Re: Fwd: Re: [PATCH] libkdeinit symbol pruning
Date: Tuesday 20 July 2004 21:30
From: Stephan Kulow <[email protected]>
To: David Faure <[email protected]>

That am_edit patch is broken, the unsermake patch should work :)

Greetings, Stephan

-------------------------------------------------------

-- 
David Faure, [email protected], sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).

_______________________________________________
Kde-optimize mailing list
[email protected]
https://mail.kde.org/mailman/listinfo/kde-optimize
kdeinit.patch (text/x-diff, 1.2 KB)
Index: kdeinit.um
===================================================================
RCS file: /home/kde/kdenonbeta/unsermake/kdeinit.um,v
retrieving revision 1.11
diff -u -3 -p -u -r1.11 kdeinit.um
--- kdeinit.um	7 Sep 2003 16:41:20 -0000	1.11
+++ kdeinit.um	20 Jul 2004 19:30:26 -0000
@@ -10,7 +10,9 @@ class KDEINIT_Handler(handlerbase.Handle
 
 	def shuffle_binaries(self, amfile):
 		newbins = []
-		
+
+		amfile.rulef.conds['KDEINIT_VSCRIPT'] = ('include_VERSION_SCRIPT', ["-Wl,--version-script=$(top_srcdir)/admin/kdeinit.map"], [])
+						
 		for bin in amfile.binaries.values():
 			if bin.prefix == 'kdeinit':
 				if not bin.type == program.PTYPE_LTLIBRARY:
@@ -30,7 +32,7 @@ class KDEINIT_Handler(handlerbase.Handle
 				ldflags = string.strip (string.replace (ldflags + ' ', '$(KDE_PLUGIN) ', ' '))
 				# first, we add the definitions for libkdeinit_<bin>.la
 				amfile.add_define('libkdeinit_' + canon_name + '_la_LDFLAGS',
-								  ldflags + ' -avoid-version -no-undefined')
+								  ldflags + ' $(KDEINIT_VSCRIPT) -avoid-version -no-undefined ')
 				amfile.add_define('libkdeinit_' + canon_name + '_la_SOURCES',
 								  amfile.value_of(bin.canon_name + '_SOURCES') )
 				amfile.add_define('libkdeinit_' + canon_name + '_la_LIBADD',
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.