* samplecfg allows gcclib as argument

This commit is contained in:
peter 1998-09-29 18:36:30 +00:00
parent c8a9da8e93
commit 8d7b655ee4

View File

@ -13,7 +13,7 @@
# $4 = Path to the GCC lib
#
if [ $# != 4 ]; then
echo 'Usage :'
echo 'Usage :'
echo 'makecfg filename rtlpath msgpath libgccpath'
echo 'filename = filename to create'
echo 'rtlpath = Path to the RTL Units'
@ -38,10 +38,10 @@ fi
echo Writing sample configuration file to /etc/ppc386.cfg
cat <<EOFCFG > /etc/ppc386.cfg
#
# Example ppc386.cfg for Free Pascal Compiler Version 0.99.0
# Example ppc386.cfg for Free Pascal Compiler Version 0.99.8
#
# Note: Older versions (before 10 March 1998) doesn't like spaces at the
# start of lines!
# Possible argument:
# \$1 = path to libgcc.a
#
# ----------------------
@ -68,7 +68,7 @@ cat <<EOFCFG > /etc/ppc386.cfg
# For a release compile with optimizes and strip debuginfo
#IFDEF RELEASE
-OGa5
-OG2p2
-Xs
#WRITE Compiling Release Version
#ENDIF
@ -99,15 +99,16 @@ cat <<EOFCFG > /etc/ppc386.cfg
# -So tries to be TP/BP 7.0 compatible
# -Ss constructor name must be init (destructor must be done)
# -St allows static keyword in objects
# -Sv allow C-variablen
# Allow goto, inline, C-operators
-Sgic
# Allow goto, inline, C-operators, C-vars
-Sgicv
# ---------------
# Code generation
# ---------------
# Uncomment the next line if you always want static/dynamic linking by default
# Uncomment the next line if you always want static/dynamic units by default
# (can be overruled with -CD, -CS at the commandline)
#-CS
#-CD
@ -121,8 +122,21 @@ cat <<EOFCFG > /etc/ppc386.cfg
#-Cr
#-Ct
# Optimizer switches
# -Og generate smaller code
# -OG generate faster code (default)
# -Or keep certain variables in registers (still BUGGY!!!)
# -Ou enable uncertain optimizations (see docs)
# -O1 level 1 optimizations (quick optimizations)
# -O2 level 2 optimizations (-O1 + slower optimizations)
# -O3 level 3 optimizations (same as -O2u)
# -Op target processor
# -Op1 set target processor to 386/486
# -Op2 set target processor to Pentium/PentiumMMX (tm)
# -Op3 set target processor to PPro/PII/c6x86/K6 (tm)
# Optimize always for Size and Pentium
#-OGa5
#-OG2p2
# -----------------------
@ -137,7 +151,8 @@ cat <<EOFCFG > /etc/ppc386.cfg
#-Fr$3/errorn.msg
# path to the gcclib
-Fg$4
#-Fg$4
-Fg\$1
# searchpath for includefiles
#-Fi/pp/inc;/pp/rtl/inc
@ -202,4 +217,4 @@ cat <<EOFCFG > /etc/ppc386.cfg
#
EOFCFG
EOFCREATE
chmod 755 $1
chmod 755 $1