From: Michael R. Crusoe Subject: Enable user-supplied LDFLAGS and CPPFLAGS --- porechop.orig/Makefile +++ porechop/Makefile @@ -15,7 +15,7 @@ # These flags are required for the build to work. FLAGS = -std=c++17 -Iporechop/include -fPIC -LDFLAGS = -shared +LDFLAGS += -shared # Different debug/optimisation levels for debug/release builds. DEBUGFLAGS = -DSEQAN_ENABLE_DEBUG=1 -g @@ -44,7 +44,7 @@ debug: $(TARGET) $(TARGET): $(OBJECTS) - $(CXX) $(FLAGS) $(CXXFLAGS) $(LDFLAGS) -o $(TARGET) $(OBJECTS) + $(CXX) $(FLAGS) $(CPPFLAGS) $(CXXFLAGS) $(LDFLAGS) -o $(TARGET) $(OBJECTS) clean: $(RM) $(OBJECTS) @@ -53,4 +53,4 @@ $(RM) $(TARGET) %.o: %.cpp $(HEADERS) - $(CXX) $(FLAGS) $(CXXFLAGS) -c -o $@ $< + $(CXX) $(FLAGS) $(CPPFLAGS) $(CXXFLAGS) -c -o $@ $<