File pythia-honour-env-cxxflags.patch of Package pythia

Index: pythia8307/configure
===================================================================
--- pythia8307.orig/configure
+++ pythia8307/configure
@@ -309,7 +309,7 @@ if [ "$ARCH" != "LINUX" ] && [ "$ARCH" !
     warn "Unknown architecture $ARCH, set as LINUX."; ARCH="LINUX"; fi
 if [ -z "$CXX" ]; then warn "CXX not set, using g++."; CXX="g++"; fi
 if [ -z "$CXX_COMMON" ]; then
-    CXX_COMMON="${ENABLE_DEBUG}${ENABLE_64BIT}"
+    CXX_COMMON="${CXXFLAGS} ${ENABLE_DEBUG}${ENABLE_64BIT}"
     CXX_COMMON="${CXX_COMMON}-std=c++11 -pedantic -W -Wall -Wshadow -fPIC"
     CXX_COMMON="${CXX_COMMON} -pthread"; fi
 if [ -z "$CXX_SHARED" ]; then
openSUSE Build Service is sponsored by