lwip-devel
[Top][All Lists]
Advanced

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

Re: [lwip-devel] subunit dependency for unit tests


From: Erik Ekman
Subject: Re: [lwip-devel] subunit dependency for unit tests
Date: Wed, 30 Sep 2015 09:19:15 +0200



On Tue, Sep 29, 2015 at 11:18 AM, Sylvain Rochet <address@hidden> wrote:
Hi Erik,

On Mon, Sep 28, 2015 at 05:24:50PM +0200, Erik Ekman wrote:
> On Mon, Sep 28, 2015 at 12:04 PM, Sylvain Rochet <address@hidden>
> wrote:
> > On Mon, Sep 28, 2015 at 09:55:23AM +0200, Erik Ekman wrote:
> > >
> > > The tests compile and run fine for me without the new -lsubunit LDFLAG.
> > > Was that library meant to be used for something that is not yet built?
> >
> > This is necessary since check >= 0.10.0, I guess you are using an older
> > check version.
>
> I see. I have 0.9.11 where it is optional. I had compiled without subunit
> support,
> but when recompiled with it 'pkg-config --libs check' still gives just
> -lcheck for me.

With 0.10.0, it changed to:

$ pkg-config --cflags check
-pthread
$ pkg-config --libs check
-lcheck_pic -lrt -lm -lsubunit

I upgraded to 0.10.0, and got no change. I am using gentoo where the subunit dependency is still optional.
With subunit support enabled, my check.pc looks like this:

prefix=/usr
exec_prefix=${prefix}
libdir=/usr/lib64
includedir=${prefix}/include

Name: Check
Description: A unit test framework for C
URL: http://check.sourceforge.net
Version: 0.10.0
Requires.private: libsubunit
Libs: -L${libdir} -lcheck
Libs.private:   -lrt -lm
Cflags: -I${includedir} -pthread
 
I don't know what the .private part means.

/Erik


reply via email to

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