--- a/makefile +++ b/makefile @@ -6,12 +6,12 @@ # Thus we removed it. Clang ARM users can add -march=armv8-a+crypto to enable # ARM NEON crypto. CXX=c++ -CXXFLAGS=-O2 -std=c++11 -Wno-logical-op-parentheses -Wno-switch -Wno-dangling-else +CXXFLAGS=$(RPM_OPT_FLAGS) -std=c++11 -Wno-logical-op-parentheses -Wno-switch -Wno-dangling-else LIBFLAGS=-fPIC DEFINES=-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DRAR_SMP STRIP=strip AR=ar -LDFLAGS=-pthread +LDFLAGS=$(RPM_LD_FLAGS) -pthread DESTDIR=/usr ##########################