Changeset 1328

Show
Ignore:
Timestamp:
02/02/08 11:04:52 (7 months ago)
Author:
bjornroche
Message:

Fixed issue that caused CFLAGS from environment to be ignored in default case. also removed unnecessary assignemnt of CXXFLAGS. (patch 3/5 from Peter Grayson: http://techweb.rfa.org/pipermail/portaudio/2008-January/008180.html)

Location:
portaudio/branches/v19-devel
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • portaudio/branches/v19-devel/configure

    r1327 r1328  
    2126321263 
    2126421264 
    21265 if( echo "${host_os}" | grep ^darwin >> /dev/null ) ; then 
    21266    CFLAGS="-O2 -Wall -pedantic -pipe -fPIC" 
    21267    CXXFLAGS="-O2" 
     21265if ( echo "${host_os}" | grep ^darwin >> /dev/null ) && 
     21266      [ "$enable_mac_debug" != "yes" ] ; then 
     21267   CFLAGS="-O2 -Wall -pedantic -pipe -fPIC -DNDEBUG" 
    2126821268else 
    2126921269   CFLAGS=${CFLAGS:-"-g -O2 -Wall -pedantic -pipe -fPIC"} 
     
    2128321283_ACEOF 
    2128421284 
    21285         if [ "$enable_mac_debug" = "yes" ] ; then 
    21286            CFLAGS="$CFLAGS -g" 
    21287            CXXFLAGS="$CXXFLAGS -g" 
    21288         else 
    21289            CFLAGS="$CFLAGS -DNDEBUG" 
    21290         fi 
    2129121285 
    2129221286        CFLAGS="$CFLAGS -Werror" 
  • portaudio/branches/v19-devel/configure.in

    r1327 r1328  
    132132 
    133133dnl -g is optional on darwin 
    134 if( echo "${host_os}" | grep ^darwin >> /dev/null ) ; then 
    135    CFLAGS="-O2 -Wall -pedantic -pipe -fPIC" 
    136    CXXFLAGS="-O2" 
     134if ( echo "${host_os}" | grep ^darwin >> /dev/null ) && 
     135      [[ "$enable_mac_debug" != "yes" ]] ; then 
     136   CFLAGS="-O2 -Wall -pedantic -pipe -fPIC -DNDEBUG" 
    137137else 
    138138   CFLAGS=${CFLAGS:-"-g -O2 -Wall -pedantic -pipe -fPIC"} 
     
    150150 
    151151        AC_DEFINE(PA_USE_COREAUDIO) 
    152         if [[ "$enable_mac_debug" = "yes" ]] ; then 
    153            CFLAGS="$CFLAGS -g" 
    154            CXXFLAGS="$CXXFLAGS -g" 
    155         else 
    156            CFLAGS="$CFLAGS -DNDEBUG" 
    157         fi 
    158152 
    159153        CFLAGS="$CFLAGS -Werror"