mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-20 21:29:26 +02:00
* adding sparc binutils directoy support for cross
compiling
This commit is contained in:
parent
7f9fb59960
commit
a15c1adde1
@ -4,6 +4,7 @@ FPC_SRC_DIR="$PWD"
|
||||
COMP_DIR="$FPC_SRC_DIR/compiler"
|
||||
RTL_DIR="$FPC_SRC_DIR/rtl"
|
||||
INCLUDE_PATH=`echo -Fi"$RTL_DIR"/{unix,linux,sparc,inc,linux/sparc}`
|
||||
SPARC_BINUTILS_DIR="/usr/local/bin/sparc-linux"
|
||||
if [[ "$1" == "-B" ]] || [[ "$#" == 0 ]]
|
||||
then
|
||||
cd "$COMP_DIR"
|
||||
@ -18,6 +19,6 @@ then
|
||||
SRC_DIR=`echo "$COMP_DIR/"{,sparc,systems}":"`
|
||||
gdb -d "$SRC_DIR" --args "$COMP_DIR"/ppcsparc -s -al $INCLUDE_PATH -dSPARC "$@"
|
||||
else
|
||||
"$COMP_DIR"/ppcsparc -s -al $INCLUDE_PATH -dSPARC "$@"
|
||||
"$COMP_DIR"/ppcsparc -s -al -FD"$SPARC_BINUTILS_DIR" $INCLUDE_PATH -dSPARC "$@"
|
||||
fi
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user