On Fri, Mar 01, 2013 at 04:38:45PM +0100, Sylvain Munaut wrote:
> On Fri, Mar 1, 2013 at 7:14 AM, Peter Stuge <[email protected]> wrote:
> > Ivan Mikey wrote:
> >> /osmo-tcap-map/test$ make
> >> cc -lasn1c -losmo-asn1-map -losmo-asn1-tcap -lm -o gprs_update 
> >> gprs_update.o
> >
> > Libraries need to follow objects that call them.
> 
> Which is _really_ annoying that Ubuntu linker now enforce that,
> because in the default 'make rules' (i.e. when you let makefile figure
> things out), it places ldflags before the objet files and so things
> break.

In plain Makefiles the variable to place '-lfoo' flags is LDLIBS, then 
it works even on Ubuntu. See e.g. [1].

Kind regards,
-Alexander Huemer

[1] 
http://cgit.osmocom.org/cgit/osmo-tetra/commit/?id=a4bdfabbbbd90f7a7887e434c84a05d6caab2d12


Reply via email to