[prev in list] [next in list] [prev in thread] [next in thread] 

List:       perl5-porters
Subject:    Andy's gcc config
From:       Andy Lester <andy () petdance ! com>
Date:       2006-04-30 13:52:30
Message-ID: 7955D6C9-9D6D-47B5-9F3E-D2889607164A () petdance ! com
[Download RAW message or body]

This is what I've been using to build blead, modified to include  
Jarkko's recent -pedantic and -ansi stuff.

#!/bin/sh

rm config.sh

GCCROOT=/var/gcc42

CCFLAGS=`echo \
     -DDEBUGGING \
     -g \
     \
     -W \
     -Wall \
     -Wextra \
     \
     -Wbad-function-cast \
     -Wcast-align \
     -Wno-cast-qual \
     -Wdeclaration-after-statement \
     -Wdisabled-optimization \
     -Wformat \
     -Winit-self \
     -Winline \
     -Wmissing-declarations \
     -Wmissing-field-initializers \
     -Wmissing-format-attribute \
     -Wmissing-noreturn \
     -Wmissing-prototypes \
     -Wpointer-arith \
     -Wno-sign-compare \
     -Wstrict-prototypes \
     -Wunused \
     \
     `
# I really want to add
# -Wshadow \
# -Wunreachable-code \

# Next up: Run all Perl with these
#    -Wsign-compare \
#    -Wconversion \
#    -Wwrite-strings \
#    -Wpadded \

COVERAGE_LDFLAGS=`echo \
     -L$GCCROOT/lib/gcc/i686-pc-linux-gnu/ \
     -lgcov \
     -fprofile-arcs \
     -ftest-coverage \
     `

LDFLAGS=`echo \
     -L$GCCROOT/lib/gcc/i686-pc-linux-gnu/ \
     `
THREADS="-Dusethreads"

./Configure \
     -des \
     -Dusedevel \
     -Dgccansipedantic \
     $THREADS \
     -Doptimize='-O' \
     -Duselongdouble \
     -Acc=$GCCROOT/bin/gcc \
     -Accflags="$CCFLAGS" \
     -Aldflags="$LDFLAGS" \
     -Dprefix=/var/perl/blead \
     -Dmydomain=.petdance.com \
     -Dcf_email=andy@petdance.com \
     -Dperladmin=andy@petdance.com \

--
Andy Lester => andy@petdance.com => www.petdance.com => AIM:petdance



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic