Alexander I. Gordeev
2008-Feb-21  00:33 UTC
[Nut-upsdev] m4 scripts ignore user-supplied CFLAGS and LDFLAGS
Hi all,
There is a discussion going on one russian forum about NUT
cross-compiling and packaging for some custom embedded firmware.
And one of the authors complained about NUT script for checking
ssl library ignoring supplied CFLAGS and LDFLAGS with the
desired include and library paths.
I checked several scripts in m4 folder and all of them do
something like this:
    CFLAGS_ORIG="${CFLAGS}"
    LDFLAGS_ORIG="${LDFLAGS}"
    CFLAGS=""
    LDFLAGS="..."
at the beginning. Is it for purpose? Why not check first with
the user-supplied variables?
I'm not very good in all this autotools magic so please
forgive me if this whole thing is dumb :)
P.S. What is the "right" way of passing custom paths (for a
cross-compilation environment)?
-- 
   Alexander
Reasonably Related Threads
- Fwd: m4 scripts ignore user-supplied CFLAGS and LDFLAGS
- patch for m4/nut_check_libnetsnmp.m4
- new features on Testing branch (was: Belkin F6H375 not seen by nut 2.2.1)
- new features on Testing branch (was: Belkin F6H375 not seen by nut 2.2.1)
- PowerCOM - HID PDC status
