mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-29 19:10:25 +02:00
fpc deb: simplified
git-svn-id: trunk@50631 -
This commit is contained in:
parent
0db26fe87a
commit
30458feccd
@ -222,10 +222,11 @@ if [ "$PackageName" = "fpc" ]; then
|
||||
if test -z "$BINUTILSPREFIX"
|
||||
then
|
||||
# need up to date samplecfg that chains cross compiler additions
|
||||
grep 'fpc-cross.cfg' $DebianInstallDir/lib/fpc/$FPCVersion/samplecfg &>/dev/null || \
|
||||
SampleCfg=$DebianInstallDir/lib/fpc/$FPCVersion/samplecfg
|
||||
grep 'fpc-cross.cfg' "$SampleCfg" &>/dev/null || \
|
||||
sed -i -e "/^FPCPATH=/aFPCPARENT=\"\`dirname \"\$1\"\`\"
|
||||
;/^#ENDIF NEEDCROSSBINUTILS/i#include \$FPCPARENT/fpc-cross.cfg" $DebianInstallDir/lib/fpc/$FPCVersion/samplecfg
|
||||
else cat > $DebianInstallDir/lib/fpc/$FPCVersion/fpc${TARGET_SUFFIX}.cfg <<CROSS
|
||||
;/^#ENDIF NEEDCROSSBINUTILS/i#include \$FPCPARENT/fpc-cross.cfg" "$SampleCfg"
|
||||
else cat > $DebianInstallDir/lib/fpc/$FPCVersion/fpc${TARGET_SUFFIX}.cfg <<CROSS
|
||||
# Detect $TARGET compiles
|
||||
#IF \$fpc-target = $TARGET
|
||||
-XP$BINUTILSPREFIX
|
||||
|
Loading…
Reference in New Issue
Block a user