blob: b0fb3736fcaf46685302dd76ecc5a0cb1b369507 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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)
|