Changeset 4070


Ignore:
Timestamp:
Nov 30, 2009, 10:40:43 AM (14 years ago)
Author:
Jean-Yves Lamoureux
Message:
  • Added --enable-profiling to configure (gprof)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • neercs/trunk/configure.ac

    r4062 r4070  
    5252dnl conditional builds
    5353AC_ARG_ENABLE(debug,
    54   [  --enable-debug          build debug versions of neercs (default no)])
     54  [  --enable-debug          build debug version of neercs (default no)])
     55AC_ARG_ENABLE(profiling,
     56  [  --enable-profiling      build profiling version of neercs (gprof)(default no)])
    5557AC_ARG_ENABLE(python,
    5658  [  --enable-python         build Python interpreter (default yes)])
     
    114116fi
    115117
    116 # Optimizations
    117 CFLAGS="${CFLAGS} -g -O2 -fno-strength-reduce -fomit-frame-pointer"
     118# Optimizations / Profiling
     119CFLAGS="${CFLAGS} -g -O2 -fno-strength-reduce"
     120
     121if test "${enable_profiling}" = "yes"; then
     122  CFLAGS="${CFLAGS} -g -O0 -fno-strength-reduce -pg"
     123else
     124  CFLAGS="${CFLAGS} -fomit-frame-pointer"
     125fi
     126
     127
    118128# Code qui fait des warnings == code de porc == deux baffes dans ta gueule
    119129CFLAGS="${CFLAGS} -Wall -Wpointer-arith -Wcast-align -Wcast-qual -Wstrict-prototypes -Wshadow -Waggregate-return -Wmissing-prototypes -Wnested-externs -Wsign-compare"
Note: See TracChangeset for help on using the changeset viewer.