Changeset 55

Show
Ignore:
Timestamp:
06/12/06 01:18:55 (6 years ago)
Author:
tg
Message:

provide sensible defaults (-O2) for systems with no default CFLAGS
tested on lunox

note: this also, as a not unwelcome side effect, changes the
default flags used for builds from "-g -O2" to "-O2" on the
standard GNU installation (and "-O2 -pipe" on OpenBSD, I
think). More flags (e.g. debugging) can and will be added
later.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/freewrt/Makefile

    r54 r55  
    3737                    'f:\n\techo P:$${CFLAGS}\n.include <bsd.prog.mk>' | \ 
    3838                    ${MAKE} -f - f EXPERIMENTAL=yes 2>/dev/null | grep '^P:' \ 
    39                     2>/dev/null | sed 's/^P://'); echo $${x:-${CFLAGS}})" 
     39                    2>/dev/null | sed 's/^P://'); echo $${x:--O2 ${CFLAGS}})" 
    4040 
    4141all: prereq 
  • trunk/freewrt/build.mk

    r54 r55  
    2323# You shouldn't need to mess with anything beyond this point... 
    2424#-------------------------------------------------------------- 
     25 
    2526TOPDIR=${shell pwd} 
    2627export TOPDIR