Changeset 4499


Ignore:
Timestamp:
Apr 25, 2013 1:20:27 AM (12 years ago)
Author:
bennylp
Message:

Re #1657: changed configure-bb10 script to not add -O2 to CFLAGS if CFLAGS is already specified in the environment variable

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/configure-bb10

    r4494 r4499  
    3434LD="${QNX_HOST}/usr/bin/nto${TARGET_ARCH}-ld "  
    3535export LDFLAGS=" -L${QNX_TARGET}/${LIBDIR}/usr/lib -L${QNX_TARGET}/${LIBDIR}/lib -L${QNX_HOST}/usr/lib/gcc/${TARGET_HOST}/4.6.3 -lgcc -lasound -laudio_manager" 
    36 export CFLAGS=" -g -O2 -fPIC -DPJ_CONFIG_BB10=1 -DPJMEDIA_AUDIO_DEV_HAS_BB10=1"  
     36 
     37if test "$CFLAGS" = ""; then 
     38  # Default if no CFLAGS is set in env 
     39  export CFLAGS=" -g -O2" 
     40fi 
     41export CFLAGS="$CFLAGS -fPIC -DPJ_CONFIG_BB10=1 -DPJMEDIA_AUDIO_DEV_HAS_BB10=1"  
    3742 
    3843# Invoke configure 
Note: See TracChangeset for help on using the changeset viewer.