[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Want "make check" to test shared, static lib

From: Paolo Bonzini
Subject: Re: Want "make check" to test shared, static lib
Date: Mon, 25 Nov 2013 09:47:39 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130923 Thunderbird/17.0.9

Il 20/11/2013 09:47, Torbjorn Granlund ha scritto:
> Christian Rössel <address@hidden> writes:
>   assuming that you are using libtool, just configure twice, with
>   --enable-static --disable-shared' and '--disable-static
>   --enable-shared' respectively. Maybe this is not the solution you are
>   looking for, but it is an easy workaround that is trivial to automate;
>   and you don't have to touch any
> We do just that for our (automated) own testing.  We cannot tell end
> users to do that.  (Or, we sure can, but they won't do it,
> realistically.)

Compile the tests twice, add "--tag disable-shared" to the linker flags
of the second copy.

Something like

check_TESTS = test-add test-add-static \
        test-sub test-sub-static
test_add_static_LDFLAGS = $(LDFLAGS) --tag disable-shared
test_add_static_LDADD = ../path/to/
test_sub_static_LDFLAGS = $(LDFLAGS) --tag disable-shared
test_sub_static_LDADD = ../path/to/


reply via email to

[Prev in Thread] Current Thread [Next in Thread]