mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-08 02:27:56 +02:00
* fixed cross packing
This commit is contained in:
parent
1bb0a6373f
commit
76a2dbb4a7
@ -58,17 +58,6 @@ FULLSOURCE=$SOURCECPU-$SOURCEOS
|
||||
echo "FPC Source: $FULLSOURCE"
|
||||
echo "FPC Target: $FULLTARGET"
|
||||
|
||||
# Check for libgdb.a
|
||||
if [ "$CHECKLIBGDB" = "yes" ]; then
|
||||
if [ "$GDBLIBDIR" = "" ]; then
|
||||
GDBLIBDIR=libgdb/$TARGETOS/$TARGETCPU
|
||||
fi
|
||||
if [ ! -e "$GDBLIBDIR/libgdb.a" ]; then
|
||||
echo "Libgdb ($GDBLIBDIR/libgdb.a) not found, aborting"
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
# Cross building
|
||||
# - add prefix
|
||||
# - no IDE
|
||||
@ -82,6 +71,21 @@ else
|
||||
IDE=ide
|
||||
fi
|
||||
|
||||
|
||||
# Check for libgdb.a
|
||||
if [ ! "$CROSS" = "cross" ]; then
|
||||
if [ "$CHECKLIBGDB" = "yes" ]; then
|
||||
if [ "$GDBLIBDIR" = "" ]; then
|
||||
GDBLIBDIR=libgdb/$TARGETOS/$TARGETCPU
|
||||
fi
|
||||
if [ ! -e "$GDBLIBDIR/libgdb.a" ]; then
|
||||
echo "Libgdb ($GDBLIBDIR/libgdb.a) not found, aborting"
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
# Build everything using the makefiles
|
||||
${MAKE} distclean CPU_TARGET=$TARGETCPU OS_TARGET=$TARGETOS
|
||||
${MAKE} ${CROSS}zipinstall CPU_TARGET=$TARGETCPU OS_TARGET=$TARGETOS
|
||||
|
Loading…
Reference in New Issue
Block a user