Apache OpenOffice (AOO) Bugzilla – Issue 37731
Do not export LINK to environment
Last modified: 2006-03-14 21:02:56 UTC
Hi, LINK command should be set by the respective environment file like solenv/inc/unxlngi4.mk, not by LinuxIntelEnv.Set*. Please apply something like this: --- set_soenv.in 23 lis 2004 20:09:30 +0100 1.26 +++ set_soenv.in 23 lis 2004 20:55:43 +0100 @@ -1689,9 +1689,9 @@ ToFile( "CC", $CC, "e" ); ToFile( "CXX", $CXX, "e" ); ToFile( "USE_SYSTEM_STL", "@USE_SYSTEM_STL@", "e" ); -if ( $COM ne "MSC" ) { - ToFile( "LINK", $CC, "e" ); -} +#if ( $COM ne "MSC" ) { +# ToFile( "LINK", $CC, "e" ); +#} ToFile( "ENABLE_SYMBOLS", "@ENABLE_SYMBOLS@", "e" ); ToFile( "ENABLE_CRASHDUMP", "@ENABLE_CRASHDUMP@", "e" ); ToFile( "ENABLE_CUPS", "@ENABLE_CUPS@", "e" ); Without this change, the lines LINK* in the unx*.mk are useless.
$CC is not the correct linker for gcc. It should be g++ or $CXX. PLease be careful when setting this up that it is tested on a machine without a C runtime install.
set target.
Cancel my last comment it was totally backwards. linker is gcc and runtime is g++. (Teach me to add comments in morning).
see discussion in #i33384# why LINK cannot be simply set to gcc. also, IIRC, the first place to break with gcc 3.4.x is "salhelper".
But this issue is very simple: just do not hardcode LINK variable to the env because it should be set elsewhere. This is not about linking with gcc or g++.
i'm absolutly fine with removing LINK from OOo environment. this would also reduce the differences between OOo and SO environment. SO just takes the macro set in the platform makefile.
I'll remove LINK myself.
Fixed in pj16.
waratah, maho: can you please verify this?
pjanik: confirmed.
maho verified. Thanks.
closed