[PATCH] Re: make check problem in libtest_smoketest building master
david.ostrovsky at gmx.de
Sat Apr 28 12:27:20 PDT 2012
On 26.04.2012 15:04, Stephan Bergmann wrote:
> [I accidentally sent this response to David only...]
> -------- Original Message --------
> Subject: Re: make check problem in libtest_smoketest building master
> Date: Thu, 26 Apr 2012 08:10:19 +0200
> From: Stephan Bergmann <sbergman at redhat.com>
> To: David Ostrovsky <david.ostrovsky at gmx.de>
> On 04/25/2012 11:00 PM, David Ostrovsky wrote:
> > Now we have a test, how do we solve the broken make check on Ubuntu
> > I would prefer a small/quick hack in place to repaire the broken make
> > check on Ubuntu.
> > Then we have time to refactor the hack and make it the right way...
> For a hack, wouldn't the easiest thing be to unconditionally sneak a
> --no-as-needed into the relevant platforms' linker command lines in
> solenv/gbuild/ and solenv/inc/?
With this ugly (work-in-progress) hack (needed only in gbuild-part) make
check command pass now on Ubuntu 11.10 (with default --as-needed linker
I'm not sure, if this is the best place to do it.
I did it unconditionally: the production code would link with this
option too (still have to test it with clean build).
This is because the linking take place in smoketest/Library_smoketest.mk
with normal function:
$(eval $(call gb_Library_Library,smoketest)
Ideas on this?
PS: with this patch the full command is:
[ build LNK ] CppunitTest/libtest_smoketest.so
O=$S/solver/unxlngx6.pro && W=$S/workdir/unxlngx6.pro && mkdir -p
$W/LinkTarget/CppunitTest/ && /usr/bin/ccache g++ -shared
-Wl,-z,noexecstack -Wl,-z,defs -Wl,-rpath-link,/lib:/usr/lib
-Wl,-z,combreloc -L$S/solenv/unxlngx6/lib -L$O/lib
-Wl,--start-group -Wl,--end-group -Wl,--no-as-needed -lcppunit
-lsmoketest -o $W/LinkTarget/CppunitTest/libtest_smoketest.so
More information about the LibreOffice