LibreOffice / openIndiana ...

Michael Stahl mstahl at redhat.com
Mon Mar 5 03:56:13 PST 2012


On 05/03/12 12:08, Jonathan Adams wrote:
> anyone got a quick fix for all the "version-script" code in gcc (using SUN ld)?
> 
> "-Wl,--version-script ../unxsoli/misc/store_store.map"
> 
> Making:    libstore.so.3
> ld: fatal: unrecognized option '--'
> ld: fatal: use the -z help option for usage information
> collect2: ld returned 1 exit status
> dmake:  Error code 1, while making '../unxsoli/lib/libstore.so.3'

this is from the old build system; so apparently solenv/inc/unxsogi.mk has:

 LINKVERSIONMAPFLAG=-Wl,--version-script

which is for GNU ld, while solenv/inc/unxsoli.mk has:

 LINKVERSIONMAPFLAG=-M

which is for Sun ld.

i don't have an opinion on whether it would be better to use GNU ld or
Sun ld, guess if you're using a bundled/easy-to-get GCC build then it's
best to use whatever ld that was configured with.

presumably for using GCC with Sun ld, the following would work:

 -Wl,-M


More information about the LibreOffice mailing list