[SSSD] [PATCH] AUTOMAKE: Don't build libsss_test_common every time

Lukas Slebodnik lslebodn at redhat.com
Tue Sep 17 08:18:15 UTC 2013


On (10/09/13 09:57), Lukas Slebodnik wrote:
>On (10/09/13 09:50), Lukas Slebodnik wrote:
>>On (10/09/13 09:48), Lukas Slebodnik wrote:
>>>ehlo,
>>>
>>>Although static library libsss_test_common was used only in tests,
>>>It was also built with command "make all".
>>>
>>>Simple patch is attached.
>>My hands was fast and now with patch
>>>
>>>LS
>>>_______________________________________________
>>>sssd-devel mailing list
>>>sssd-devel at lists.fedorahosted.org
>>>https://lists.fedorahosted.org/mailman/listinfo/sssd-devel
>
>self NACK
>
>There is problem with linking. I had to some files cached on first time.
>
>libtool: link: cannot find the library `libsss_test_common.la' or unhandled
>argument `libsss_test_common.la'
>make[2]: *** [dyndns-tests] Error 1
>make[2]: *** Waiting for unfinished jobs....
>libtool: link: cannot find the library `libsss_test_common.la' or unhandled
>argument `libsss_test_common.la'
>
Problem was with parallel build. (make -j)
Make tries to link dyndns-tests with library libsss_test_common.a, but library
libsss_test_common.a has not been completed yet.

If we wanted to fix this, we would need to add libsss_test_common.la as a
dependency to each test. <test>_DEPENDENCIES = libsss_test_common.la

libsss_test_common.la can be build without test libraries (check. cmocka),
so it can be build within make rule "all".

If there aren't any objections, we can ignore this issue.

LS



More information about the sssd-devel mailing list