[csw-maintainers] setting *FLAGS?
Daniel Pocock
daniel at opencsw.org
Thu Apr 19 16:06:24 CEST 2012
I notice there are many ways people set CXXFLAGS, LDFLAGS, etc from
within mgar Makefiles
Let's say I want to use bdb, I notice several versions are available:
daniel at login [login]:~/opencsw/resiprocate/trunk > ls -d /opt/csw/bdb*
/opt/csw/bdb4
/opt/csw/bdb42
/opt/csw/bdb44
/opt/csw/bdb47
/opt/csw/bdb48
Should I just do something like this?
BDB_HOME = /opt/csw/bdb48
BDB_INC = $(BDB_HOME)/include
BDB_LIB = $(BDB_HOME)/lib
EXTRA_CFLAGS += -I$(BDB_INC)
EXTRA_CXXFLAGS += -I$(BDB_INC)
EXTRA_LINKER_FLAGS += -L$(BDB_LIB)
Or should I set LDFLAGS directly?
LDFLAGS += -L$(BDB_LIB)
or something completely different?
More information about the maintainers
mailing list