Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-ports-gnome
Path: blob/main/emulators/frodo/files/patch-configure
16166 views
--- configure.orig	2002-01-02 16:44:11 UTC
+++ configure
@@ -1602,15 +1602,15 @@ if test "$ac_test_CFLAGS" = set; then
   CFLAGS=$ac_save_CFLAGS
 elif test $ac_cv_prog_cc_g = yes; then
   if test "$GCC" = yes; then
-    CFLAGS="-g -O2"
+    CFLAGS="${CFLAGS} -g -O2"
   else
-    CFLAGS="-g"
+    CFLAGS="${CFLAGS} -g"
   fi
 else
   if test "$GCC" = yes; then
-    CFLAGS="-O2"
+    CFLAGS="${CFLAGS} -O2"
   else
-    CFLAGS=
+    CFLAGS="${CFLAGS}"
   fi
 fi
 # Some people use a C++ compiler to compile C.  Since we use `exit',
@@ -2283,7 +2283,7 @@ echo "${ECHO_T}no" >&6
 fi
 
 if [ x"$GXX" = "xyes" ]; then
-  CFLAGS="-O2 -g -fomit-frame-pointer -Wall -Wno-unused -Wno-format"
+  CFLAGS="${CFLAGS} -O2 -g -fomit-frame-pointer -Wall -Wno-unused -Wno-format"
 fi
 
 UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown