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

Re: Circular dependency building test programs



On Sat, 20 Oct 2007 12:30:53 -0400
Michael B Allen <miallen@ioplex.com> wrote:

> gcc <stuff> -o .libs/snprintf-test snprintf_test-snprintf-test.o \
>       <stuff> ./.libs/libtest.a ./.libs/libroken.so -pthread \
>       -l<mylibhere> -l<heimdallibshere> <morestuff>
> /var/ioplex/heimdal/lib/libkrb5.so: undefined reference to `bswap16'
> /var/ioplex/heimdal/lib/libkrb5.so: undefined reference to `setprogname
> ...
> So is there any option to NOT build test programs?

And the answer is:

Yes, 'make all' does not build check_PROGRAMS [1]. Only 'make check'
builds check_PROGRAMS.

However, unfotunately, Heimdal still builds the test programs. I believe
this is because they are also listed in noinst_PROGRAMS. Trying to
comment out noinst_PROGRAMS leads to it's own errors.

Mike

http://www.gnu.org/software/automake/manual/html_node/Tests.html

-- 
Michael B Allen
PHP Active Directory SPNEGO SSO
http://www.ioplex.com/