summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-util/gambas/files/gambas-2.8.2-FLAGS.patch')
-rw-r--r--dev-util/gambas/files/gambas-2.8.2-FLAGS.patch39
1 files changed, 39 insertions, 0 deletions
diff --git a/dev-util/gambas/files/gambas-2.8.2-FLAGS.patch b/dev-util/gambas/files/gambas-2.8.2-FLAGS.patch
new file mode 100644
index 000000000000..b0fb3736fcaf
--- /dev/null
+++ b/dev-util/gambas/files/gambas-2.8.2-FLAGS.patch
@@ -0,0 +1,39 @@
+--- acinclude.m4.orig 2008-08-31
++++ acinclude.m4 2008-08-31
+@@ -194,17 +194,6 @@
+
+ AM_CONDITIONAL(DEBUG, test "$gambas_debug" = yes)
+
+- dnl ---- optimization option
+-
+- AC_ARG_ENABLE(
+- optimization,
+- [ --enable-optimization compile with optimizations (default: yes)],
+- gambas_optimization=$enableval,
+- gambas_optimization=yes
+- )
+-
+- AM_CONDITIONAL(OPTIMIZE, test "$gambas_optimization" = yes)
+-
+ AM_CFLAGS="$AM_CFLAGS -pipe -Wall -Wno-unused-value -fsigned-char"
+ AM_CXXFLAGS="$AM_CXXFLAGS -pipe -Wall -fno-exceptions -Wno-unused-value -fsigned-char"
+
+@@ -229,18 +218,7 @@
+
+ dnl ---- Optimization flags
+
+- if test "x$gambas_optimization" = "xyes"; then
+ AM_CFLAGS_OPT="$AM_CFLAGS -O3"
+- AM_CFLAGS="$AM_CFLAGS -Os"
+- AM_CXXFLAGS="$AM_CXXFLAGS -Os -fno-omit-frame-pointer"
+- else
+- AM_CFLAGS_OPT="$AM_CFLAGS -O0"
+- AM_CFLAGS="$AM_CFLAGS -O0"
+- AM_CXXFLAGS="$AM_CXXFLAGS -O0"
+- fi
+-
+- CFLAGS=""
+- CXXFLAGS=""
+
+ AC_SUBST(AM_CFLAGS)
+ AC_SUBST(AM_CFLAGS_OPT)