Hi all,

Go a bit of a problem.
We are using autotools for our project.

The structure we have in our project is like this:

example/*/Makefile.am
platform/targetA/Makefile.am
platform/targetB/Makefile.am

The LDFLAGS between the platforms are different.
And each platform will create a library.

I want the linking flags from platform/* (whichever platform we built
for) propagated to the example/*/Makefile.
This means, I want to build the example binaries with the same LDFLAGS
as the platform library.

We have circular dependencies when linking one of the platforms, so we
use --start-group --end-group in AM_LDFLAGS for this platform.
This is striped if we specify it in LIBS variable.

The problem is:
This doesn't propagate to the examples Makefile.

How should we solve this?
What automake macro should we use, and where?
Or can you recommend a different solution?

Or what do we do wrong?

Cheers,
-- 
Anders Roxell
anders.rox...@linaro.org
M: +46 709 71 42 85 | IRC: roxell

Reply via email to