Changeset 285b55d


Ignore:
Timestamp:
2007-10-10T22:45:19Z (17 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
d444c09
Parents:
1186382
Message:

configure script now allows one to override CFLAGS. (Bug #171)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • configure

    r1186382 r285b55d  
    140140
    141141if [ "$debug" = "1" ]; then
    142         echo 'CFLAGS=-g' >> Makefile.settings
     142        [ -z "$CFLAGS" ] && CFLAGS=-g
    143143        echo 'DEBUG=1' >> Makefile.settings
    144144        echo '#define DEBUG' >> config.h
    145145else
    146         echo 'CFLAGS=-O3' >> Makefile.settings
    147 fi
    148 
     146        [ -z "$CFLAGS" ] && CFLAGS=-O3
     147fi
     148
     149echo CFLAGS=$CFLAGS >> Makefile.settings
    149150echo CFLAGS+=-I`pwd` -I`pwd`/lib -I`pwd`/protocols -I. >> Makefile.settings
    150151
Note: See TracChangeset for help on using the changeset viewer.