Can't build trick 15.2.0 with --gsl=/usr

The _HAVE_GSL flag was not being passed into all compilation lines when
GSL was present.  Added them to to CFLAGS and CXXFLAGS so it is.

refs #235
This commit is contained in:
Alex Lin 2016-05-11 09:16:55 -05:00
parent 3f7676a740
commit 5b27723501

View File

@ -128,6 +128,8 @@ ifeq ($(HAVE_GSL),1)
TRICK_EXEC_LINK_LIBS += -L$(GSL_HOME)/lib
endif
TRICK_EXEC_LINK_LIBS += -lgsl -lgslcblas
TRICK_CFLAGS += -D_HAVE_GSL
TRICK_CXXFLAGS += -D_HAVE_GSL
endif
TRICK_INCLUDE = $(shell $(PERL) -e '@inc_paths = "${TRICK_CFLAGS}" =~ /-I\s*(\S+)/g ; foreach $$i (@inc_paths) { print "-I$$i "}')