mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-14 01:59:32 +02:00
* samplecfg allows gcclib as argument
This commit is contained in:
parent
c8a9da8e93
commit
8d7b655ee4
@ -13,7 +13,7 @@
|
|||||||
# $4 = Path to the GCC lib
|
# $4 = Path to the GCC lib
|
||||||
#
|
#
|
||||||
if [ $# != 4 ]; then
|
if [ $# != 4 ]; then
|
||||||
echo 'Usage :'
|
echo 'Usage :'
|
||||||
echo 'makecfg filename rtlpath msgpath libgccpath'
|
echo 'makecfg filename rtlpath msgpath libgccpath'
|
||||||
echo 'filename = filename to create'
|
echo 'filename = filename to create'
|
||||||
echo 'rtlpath = Path to the RTL Units'
|
echo 'rtlpath = Path to the RTL Units'
|
||||||
@ -38,10 +38,10 @@ fi
|
|||||||
echo Writing sample configuration file to /etc/ppc386.cfg
|
echo Writing sample configuration file to /etc/ppc386.cfg
|
||||||
cat <<EOFCFG > /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
|
# Possible argument:
|
||||||
# start of lines!
|
# \$1 = path to libgcc.a
|
||||||
#
|
#
|
||||||
|
|
||||||
# ----------------------
|
# ----------------------
|
||||||
@ -68,7 +68,7 @@ cat <<EOFCFG > /etc/ppc386.cfg
|
|||||||
|
|
||||||
# For a release compile with optimizes and strip debuginfo
|
# For a release compile with optimizes and strip debuginfo
|
||||||
#IFDEF RELEASE
|
#IFDEF RELEASE
|
||||||
-OGa5
|
-OG2p2
|
||||||
-Xs
|
-Xs
|
||||||
#WRITE Compiling Release Version
|
#WRITE Compiling Release Version
|
||||||
#ENDIF
|
#ENDIF
|
||||||
@ -99,15 +99,16 @@ cat <<EOFCFG > /etc/ppc386.cfg
|
|||||||
# -So tries to be TP/BP 7.0 compatible
|
# -So tries to be TP/BP 7.0 compatible
|
||||||
# -Ss constructor name must be init (destructor must be done)
|
# -Ss constructor name must be init (destructor must be done)
|
||||||
# -St allows static keyword in objects
|
# -St allows static keyword in objects
|
||||||
|
# -Sv allow C-variablen
|
||||||
|
|
||||||
# Allow goto, inline, C-operators
|
# Allow goto, inline, C-operators, C-vars
|
||||||
-Sgic
|
-Sgicv
|
||||||
|
|
||||||
# ---------------
|
# ---------------
|
||||||
# Code generation
|
# 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)
|
# (can be overruled with -CD, -CS at the commandline)
|
||||||
#-CS
|
#-CS
|
||||||
#-CD
|
#-CD
|
||||||
@ -121,8 +122,21 @@ cat <<EOFCFG > /etc/ppc386.cfg
|
|||||||
#-Cr
|
#-Cr
|
||||||
#-Ct
|
#-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
|
# Optimize always for Size and Pentium
|
||||||
#-OGa5
|
#-OG2p2
|
||||||
|
|
||||||
|
|
||||||
# -----------------------
|
# -----------------------
|
||||||
@ -137,7 +151,8 @@ cat <<EOFCFG > /etc/ppc386.cfg
|
|||||||
#-Fr$3/errorn.msg
|
#-Fr$3/errorn.msg
|
||||||
|
|
||||||
# path to the gcclib
|
# path to the gcclib
|
||||||
-Fg$4
|
#-Fg$4
|
||||||
|
-Fg\$1
|
||||||
|
|
||||||
# searchpath for includefiles
|
# searchpath for includefiles
|
||||||
#-Fi/pp/inc;/pp/rtl/inc
|
#-Fi/pp/inc;/pp/rtl/inc
|
||||||
@ -202,4 +217,4 @@ cat <<EOFCFG > /etc/ppc386.cfg
|
|||||||
#
|
#
|
||||||
EOFCFG
|
EOFCFG
|
||||||
EOFCREATE
|
EOFCREATE
|
||||||
chmod 755 $1
|
chmod 755 $1
|
||||||
|
Loading…
Reference in New Issue
Block a user