From 7e2d28e2042e55d7d6c8e55e533c4c6762591d69 Mon Sep 17 00:00:00 2001 From: Vincent Cheng Date: Sat, 25 Oct 2014 14:04:53 -0700 Subject: [PATCH] pass any preprocessor flags defined by environment to gcc --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 86743f0..ab37e6e 100644 --- a/Makefile +++ b/Makefile @@ -30,4 +30,4 @@ CXXFLAGS += -DPRIMUS_libGLd='"$(PRIMUS_libGLd)"' $(LIBDIR)/libGL.so.1: libglfork.cpp mkdir -p $(LIBDIR) - $(CXX) $(CXXFLAGS) -fvisibility=hidden -fPIC -shared -Wl,-Bsymbolic -o $@ $< -lX11 -lpthread -lrt + $(CXX) $(CPPFLAGS) $(CXXFLAGS) -fvisibility=hidden -fPIC -shared -Wl,-Bsymbolic -o $@ $< -lX11 -lpthread -lrt