Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 229821 | Differences between
and this patch

Collapse All | Expand All

(-)acinclude.m4.orig (-22 lines)
Lines 194-210 Link Here
194
194
195
  AM_CONDITIONAL(DEBUG, test "$gambas_debug" = yes)
195
  AM_CONDITIONAL(DEBUG, test "$gambas_debug" = yes)
196
196
197
  dnl ---- optimization option
198
199
  AC_ARG_ENABLE(
200
    optimization,
201
    [  --enable-optimization          compile with optimizations (default: yes)],
202
    gambas_optimization=$enableval,
203
    gambas_optimization=yes
204
  )
205
206
  AM_CONDITIONAL(OPTIMIZE, test "$gambas_optimization" = yes)
207
208
  AM_CFLAGS="$AM_CFLAGS -pipe -Wall -Wno-unused-value -fsigned-char"
197
  AM_CFLAGS="$AM_CFLAGS -pipe -Wall -Wno-unused-value -fsigned-char"
209
  AM_CXXFLAGS="$AM_CXXFLAGS -pipe -Wall -fno-exceptions -Wno-unused-value -fsigned-char"
198
  AM_CXXFLAGS="$AM_CXXFLAGS -pipe -Wall -fno-exceptions -Wno-unused-value -fsigned-char"
210
199
Lines 229-246 Link Here
229
218
230
  dnl ---- Optimization flags
219
  dnl ---- Optimization flags
231
  
220
  
232
  if test "x$gambas_optimization" = "xyes"; then
233
    AM_CFLAGS_OPT="$AM_CFLAGS -O3"
221
    AM_CFLAGS_OPT="$AM_CFLAGS -O3"
234
    AM_CFLAGS="$AM_CFLAGS -Os"
235
    AM_CXXFLAGS="$AM_CXXFLAGS -Os -fno-omit-frame-pointer"
236
  else
237
    AM_CFLAGS_OPT="$AM_CFLAGS -O0"
238
    AM_CFLAGS="$AM_CFLAGS -O0"
239
    AM_CXXFLAGS="$AM_CXXFLAGS -O0"
240
  fi
241
242
  CFLAGS=""
243
  CXXFLAGS=""
244
  
222
  
245
  AC_SUBST(AM_CFLAGS)
223
  AC_SUBST(AM_CFLAGS)
246
  AC_SUBST(AM_CFLAGS_OPT)
224
  AC_SUBST(AM_CFLAGS_OPT)

Return to bug 229821