mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-11-02 06:29:25 +01:00
+ A binutils prefix is not necessary when cross-compiling from i386 to x86_64 and vice versa.
git-svn-id: trunk@6933 -
This commit is contained in:
parent
96d1a246ee
commit
9bf4565f0b
@ -122,6 +122,19 @@ case $HOSTOS in
|
||||
|
||||
esac
|
||||
|
||||
case `arch` in
|
||||
i386)
|
||||
# Cross-binutils are not needed to compile for x86_64 on an i386 system
|
||||
CPUCROSSIFDEF='#IFNDEF CPUAMD64'
|
||||
CPUCROSSENDIF='#ENDIF'
|
||||
;;
|
||||
x86_64)
|
||||
# Cross-binutils are not needed to compile for i386 on an x86_64 system
|
||||
CPUCROSSIFDEF='#IFNDEF CPUI386'
|
||||
CPUCROSSENDIF='#ENDIF'
|
||||
;;
|
||||
esac
|
||||
|
||||
# set right path to FPC with $fpcversion
|
||||
FPCPATH=`dirname "$1"`/\$fpcversion
|
||||
|
||||
@ -164,9 +177,11 @@ cat <<EOFCFG > $thefile
|
||||
#ENDIF
|
||||
|
||||
# set binutils prefix
|
||||
$CPUCROSSIFDEF
|
||||
#IFDEF FPC_CROSSCOMPILING
|
||||
-XP\$fpctarget-
|
||||
#ENDIF
|
||||
$CPUCROSSENDIF
|
||||
|
||||
# ----------------
|
||||
# Parsing switches
|
||||
|
||||
Loading…
Reference in New Issue
Block a user