<div style="font-family: Verdana; font-size: 12;">Here's something interesting :) "grepping" on the root of sources:<br><br>sonicle@xstreamdev$ grep "Wl,-O1" *<br>ChangeLog:no local -Wl,-O1 linker flag<br>ChangeLog:no local -Wl,-O1 linker flag<br>ChangeLog:add -Wl,-O1 as linker optimization flags when debug is disabled<br><tt><br><br><br>----------------------------------------------------------------------------------<br><br>Da: Norbert Thiebaud <nthiebaud@gmail.com><br>A: gbulfon@sonicle.com <br>Cc: Michael Stahl <mstahl@redhat.com> libreoffice <libreoffice@lists.freedesktop.org> Richard PALO <richard.palo@free.fr> <br>Data: 18 gennaio 2015 20.15.22 CET<br>Oggetto: Re: 4.4.0.1 build error on sal/types.h on solaris/illumos<br><br></tt><blockquote style="BORDER-LEFT: #000080 2px solid; MARGIN-LEFT: 5px; PADDING-LEFT: 5px"><tt>On Sun, Jan 18, 2015 at 12:18 PM, Gabriele Bulfon <gbulfon@sonicle.com> wrote:<br>> Ok, I checked and it looks fine, so solaris.mk should be taken.<br>> Also config.log shows correct variables for OS, CPU and COM.<br>><br>> What actually happens is during make, after it has downloaded and extracted<br>> various stuff.<br>> The last one is translations file.<br>><br>> Then it goes on building concat-deps, and linking fails:<br>><br>> [build C ] solenv/bin/concat-deps.c<br>> [build LNK] Executable/concat-deps<br>> ld: fatal: unrecognized option '-O'<br>> ld: fatal: unrecognized option '-1'<br>> ld: fatal: use the -z help option for usage information<br>> collect2: error: ld returned 1 exit status<br>><br>> Maybe just concat-deps have problems linking with wrong options on Solaris?<br><br>Yes it is quite possible... concat-deps is a small utility I wrote to<br>speed up the original perl-based one... and I'm quite sure I never<br>tried to link it on Solaris.<br>Otoh concat-deps is built using the standard gbuild mechanism for that:<br>see solenv/Executable_concat-deps.mk<br><br>so it is more likely that the problem is generic and that concat-deps<br>just happen to be the first one to be linked.<br><br>> BTW, is there any way to issue gmake and let it show what command "LNK" is<br>> doing?<br>> It tried forcing a "-n" but I did not get the command debugged....<br><br>verbose=t make<br><br>Norbert<br><br><br></tt></blockquote></div>