On Fri, Nov 21, 2014 at 1:03 AM, Maxim Uvarov <[email protected]> wrote: > On 11/20/2014 10:07 PM, Ciprian Barbu wrote: >> >> On Thu, Nov 20, 2014 at 3:55 PM, Taras Kondratiuk >> <[email protected]> wrote: >>> >>> On 11/20/2014 03:18 PM, Ciprian Barbu wrote: >>>> >>>> On Wed, Nov 19, 2014 at 3:39 PM, Taras Kondratiuk >>>> <[email protected]> wrote: >>>>> >>>>> diff --git a/test/cunit/buffer/Makefile.am >>>>> b/test/cunit/buffer/Makefile.am >>>>> new file mode 100644 >>>>> index 0000000..071a701 >>>>> --- /dev/null >>>>> +++ b/test/cunit/buffer/Makefile.am >>>>> @@ -0,0 +1,11 @@ >>>>> +include $(top_srcdir)/test/Makefile.inc >>>>> + >>>>> +if ODP_CUNIT_ENABLED >>>>> +bin_PROGRAMS = odp_buffer_test >>>>> +odp_buffer_test_LDFLAGS = $(AM_LDFLAGS) -static -lcunit >>>> >>>> Do you have cunit installed in standard paths? I don't, and I had to >>>> add this here: >>>> >>>> odp_schedule_test_LDFLAGS = $(AM_LDFLAGS) -L$(CUNIT_PATH)/lib -static >>>> -lcunit >>>> odp_schedule_test_CFLAGS = $(AM_CFLAGS) -I$(CUNIT_PATH)/include >>> >>> I have it standard path, but anyway these changes are already in >>> test/cunit/Makefile.am >>> >>> Maybe you are not on the latest master branch. >> >> I had those changes in test/cunit/Makefile.am, but it still didn't >> work. I don't think the CFLAGS and LDFLAGS are "inherited" if you add >> a new Makefile.am using SUBDIRS. > > > ./configure --enable-debug CFLAGS="-O0 -g -I/home/muvarov/CUnitHome/include > -L/home/muvarov/CUnitHome/lib" EXTRA_CFLAGS="-O0 -g" > --enable-allow-unimplemented --enable-cunit
Of course that works, but why go through all the trouble when you can make it work from the Makefile? > > >> >> _______________________________________________ >> lng-odp mailing list >> [email protected] >> http://lists.linaro.org/mailman/listinfo/lng-odp > > > > _______________________________________________ > lng-odp mailing list > [email protected] > http://lists.linaro.org/mailman/listinfo/lng-odp _______________________________________________ lng-odp mailing list [email protected] http://lists.linaro.org/mailman/listinfo/lng-odp
