* fixed cross packing

This commit is contained in:
florian 2005-02-10 21:32:42 +00:00
parent 1bb0a6373f
commit 76a2dbb4a7

View File

@ -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