develooper Front page | perl.perl5.porters | Postings from April 2006

Andy's gcc config

Thread Previous
From:
Andy Lester
Date:
April 30, 2006 06:53
Subject:
Andy's gcc config
Message ID:
7955D6C9-9D6D-47B5-9F3E-D2889607164A@petdance.com
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




Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About