From 88beee563976111c6e2bfe41ed3f413dfdd23247 Mon Sep 17 00:00:00 2001 From: tqchen Date: Sun, 24 Aug 2014 09:47:08 -0700 Subject: [PATCH] try to fix compile bug --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 6dcd1efe4..80848649d 100644 --- a/Makefile +++ b/Makefile @@ -7,9 +7,12 @@ export LDFLAGS= -pthread -lm ifeq ($(no_omp),1) export CFLAGS = -Wall -O3 -msse2 -Wno-unknown-pragmas -DDISABLE_OPENMP else - export CFLAGS = -Wall -O3 -msse2 -Wno-unknown-pragmas -fopenmp + export CFLAGS = -Wall -O3 -msse2 -Wno-unknown-pragmas -fopenmp endif +# expose these flags to R CMD SHLIB +export PKG_CPPFLAGS = $(CFLAGS) + # specify tensor path BIN = xgboost OBJ =