normaliz-3.0.0-respect-flags.patch 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. diff -U 3 -dHrN Normaliz3.0.orig/source/Makefile Normaliz3.0/source/Makefile
  2. --- Normaliz3.0.orig/source/Makefile 2015-09-29 14:05:44.960631514 +0200
  3. +++ Normaliz3.0/source/Makefile 2015-09-29 14:06:06.510346764 +0200
  4. @@ -19,16 +19,16 @@
  5. @$(MAKE) normaliz
  6. normaliz.o: $(SOURCES) $(HEADERS) $(LIBHEADERS)
  7. - $(CXX) $(CXXFLAGS) $(NORMFLAGS) -c Normaliz.cpp -o normaliz.o
  8. + $(CXX) $(CXXFLAGS) $(LDFLAGS) -c Normaliz.cpp -o normaliz.o
  9. normaliz: $(SOURCES) $(HEADERS) normaliz.o libnormaliz/libnormaliz.a
  10. - $(CXX) $(CXXFLAGS) $(NORMFLAGS) normaliz.o libnormaliz/libnormaliz.a $(LINKFLAGS) -o normaliz
  11. + $(CXX) $(CXXFLAGS) $(LDFLAGS) normaliz.o libnormaliz/libnormaliz.a $(LINKFLAGS) -o normaliz
  12. normaliz1: $(SOURCES) $(HEADERS) $(LIBHEADERS) $(LIBSOURCES)
  13. - $(CXX) $(CXXFLAGS) $(NORMFLAGS) Normaliz-impl.cpp $(LINKFLAGS) -o normaliz1
  14. + $(CXX) $(CXXFLAGS) $(LDFLAGS) Normaliz-impl.cpp $(LINKFLAGS) -o normaliz1
  15. normaliz-pg: $(SOURCES) $(HEADERS) $(LIBHEADERS) $(LIBSOURCES)
  16. - $(CXX) $(CXXFLAGS) $(NORMFLAGS) -pg Normaliz-impl.cpp $(LINKFLAGS) -o normaliz-pg
  17. + $(CXX) $(CXXFLAGS) $(LDFLAGS) -pg Normaliz-impl.cpp $(LINKFLAGS) -o normaliz-pg
  18. #always go down the directory and let the make there check what has to be done
  19. diff -U 3 -dHrN Normaliz3.0.orig/source/Makefile.configuration Normaliz3.0/source/Makefile.configuration
  20. --- Normaliz3.0.orig/source/Makefile.configuration 2015-09-29 14:05:44.960631514 +0200
  21. +++ Normaliz3.0/source/Makefile.configuration 2015-09-29 14:07:16.419426513 +0200
  22. @@ -1,11 +1,9 @@
  23. ##
  24. ## Makefile configuration for normaliz
  25. ##
  26. -CXX = g++
  27. #CXX = linux32 g++ -m32 -march=i686 #compile it for linux32
  28. CXXFLAGS += -std=c++0x
  29. CXXFLAGS += -Wall -pedantic
  30. -CXXFLAGS += -O3 -funroll-loops
  31. #CXXFLAGS += -I /usr/local/boost_1_45_0
  32. #CXXFLAGS += -g ## debugging
  33. #CXXFLAGS += -pg ## profiling
  34. @@ -21,7 +19,6 @@
  35. endif
  36. ## for distributing the executables link static (does not work for mac)
  37. -CXXFLAGS += -static
  38. ## for almost static compilation on Mac use
  39. #CXXFLAGS += -static-libgcc
  40. ## make it compatible with older Mac versions