IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 15, 2006, 8:19:04 AM (21 years ago)
Author:
magnier
Message:

added optimize flags

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_rel9_p0/psModules/configure.ac

    r5760 r5988  
    1010dnl otherise AC_PROG_CC will default CFLAGS to "-g -02"
    1111if test -z ${CFLAGS} ; then
    12   CFLAGS="-g -O0"
     12  CFLAGS=""
    1313fi
    1414AC_SUBST([CFLAGS])
     
    5757AC_SUBST(SRCINC,${SRCINC=})
    5858AC_SUBST([SRCDIRS],${SRCDIRS=})
     59
     60dnl handle debug building
     61AC_ARG_ENABLE(optimize,
     62  [AS_HELP_STRING(--enable-optimize,enable compiler optimization)],
     63  [AC_MSG_RESULT(compile optimization enabled)
     64   CFLAGS="${CFLAGS=} -O2"],
     65  [AC_MSG_RESULT([compile optimization disabled])
     66   CFLAGS="${CFLAGS=} -O0 -g"]
     67)
    5968
    6069dnl doxygen -------------------------------------------------------------------
Note: See TracChangeset for help on using the changeset viewer.