fhormoz / caviar

52 stars 25 forks source link

using pkgconfig for LDFLAGS #14

Open tombradford opened 5 years ago

tombradford commented 5 years ago

as a suggestion, one could always override the LDFLAGS set in the makefile with the following, to get the library search path and library names using pkgconfig:

make LDFLAGS="$(pkg-config gsl lapack --libs) \
-I$(pwd)/armadillo/include/ -DARMA_DONT_USE_WRAPPER"

This is useful for installations where LIBRARY_PATH has not been configured correctly.