Re: [PATCH] libkdeinit symbol pruning

Karl Vogel <[email protected]>
Newsgroups gmane.comp.kde.devel.optimize
Message-ID <[email protected]>
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',
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.