File pion-net-cflags.patch of Package pion-net

Fix not to replace Fedora compiler flags.

Author: Jan Vcelak <>

diff --git a/common/build/ b/common/build/
--- a/common/build/
+++ b/common/build/
@@ -86,7 +86,7 @@ case "$build_os" in
 	# Other (Linux): GCC compiler
 	LDFLAGS="$LDFLAGS -pthread -Wl,-E"
-	PION_OPT_FLAGS="-O2 -ggdb -Wall -Wno-strict-aliasing -DNDEBUG"
+	PION_OPT_FLAGS="-Wall -Wno-strict-aliasing -DNDEBUG"
 	PION_DEBUG_FLAGS="-O0 -ggdb -Wall -Wno-strict-aliasing -fkeep-inline-functions"
 	PION_EXTERNAL_LIBS="-ldl -licui18n -licuuc -licudata"
diff --git a/ b/
--- a/
+++ b/
@@ -23,10 +23,8 @@ DX_DOXYGEN_FEATURE(ON)
 DX_INIT_DOXYGEN(pion-net, net/doc/Doxyfile, net/doc)
-# Define CXXFLAGS before AC_PROG_CXX to suppress the default autoconf
-# compiler options
 # Currently only the embedded common library can be used