Dieter Gardeike wrote [more or less]:
> FAILS: LDFLAGS = $(shell fltk-config --ldflags)
> WORKS: LDLIBS  = $(shell fltk-config --ldflags)
> So I would suggest an option --ldlibs for the libraries.

        Tried your same Makefile on my linux machine, and it behaves
        as you describe; fails with LDFLAGS, but works with LDLIBS.

        Had similar results on my Mac, though had to add this line
        at the top of the Makefile:

CXX = $(shell fltk-config --cxx)

        ..then it worked on Mac and Linux.
        (Couldn't test on SGI because of STR#2174)

        Had to keep CC in there, because otherwise the Mac tries
        to link with 'gcc' instead of 'g++'.

        Not sure if the default Makefile behavior should be
        guiding our naming conventions, but if it should, a request
        for "--ldlibs" seems reasonable, since it sounds like possibly
        LDFLAGS<->-ldflags can't work due to default ordering.

        At very least, docs on use of fltk-config should warn
        about this, or show a default example with LDLIBS instead.

        If nothing else, the output from --ldflags does seem more
        like a list of "ld libs", and not so much "ld flags"..
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to