On 22/02/10 11:26, Michael Matz wrote:
Hi,
On Mon, 22 Feb 2010, Cristian Rodríguez wrote:
Is there any way to use the gold linker in a project-wide way and/or per package basis without resorting to export LD=... or gcc -B hacks ?
Create a package "gold-by-default", which * Requires binutils-gold * creates a new directory /opt/gold/bin * therein a symlink named 'ld' (to /usr/bin/gold) * creates a new file /etc/profile.d/gold-by-default.sh which sets and exports COMPILER_PATH=/opt/gold/bin, and prepends PATH with that path
Thanks for the hint, that is much cleaner, however such package fails to build due to "/opt/gold/ld" is not allowed anymore in FHS 2.2. :-) -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org