[PATCH] libkdeinit symbol pruning

Karl Vogel karl.vogel at seagha.com
Sun Jul 18 16:34:45 CEST 2004


On Sunday 18 July 2004 16:25, Karl Vogel wrote:
> NOTE: unsermake seems to ignore the am_edit changes, so if you use
> unsermake it will _NOT_ use the version script! Something for an
> unsermake-whiz to look at :-)

Fix for unsermake and kdeinit version script

Index: kdeinit.um
===================================================================
RCS file: /home/kde/kdenonbeta/unsermake/kdeinit.um,v
retrieving revision 1.11
diff -u -r1.11 kdeinit.um
--- kdeinit.um	7 Sep 2003 16:41:20 -0000	1.11
+++ kdeinit.um	18 Jul 2004 14:31:59 -0000
@@ -30,7 +30,7 @@
 				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 + ' -Wl,-version-script=\$(top_srcdir)/admin/kdeinit.map -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',



More information about the Kde-optimize mailing list