mirror of
https://github.com/autc04/Retro68.git
synced 2024-06-11 09:29:44 +00:00
Copy OpenTransportAppPPC.o and other PPC static libraries
This commit is contained in:
parent
a135f0b196
commit
d1a3939015
|
@ -238,6 +238,13 @@ if [ $BUILD_PPC != false ]; then
|
||||||
explainInterfaces
|
explainInterfaces
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if locateInterfaceThing OPENTRANSPORTAPPPPC OpenTransportAppPPC.o; then
|
||||||
|
PPCLIBRARIES=`dirname "$OPENTRANSPORTAPPPPC"`
|
||||||
|
else
|
||||||
|
echo "Could not find OpenTransportAppPPC.o anywhere inside InterfaceAndLibraries/"
|
||||||
|
echo "(This file is required for OpenTransport on PPC only)"
|
||||||
|
fi
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ $BUILD_CARBON != false ]; then
|
if [ $BUILD_CARBON != false ]; then
|
||||||
|
@ -475,6 +482,21 @@ if [ $BUILD_PPC != false ]; then
|
||||||
done
|
done
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
if [ -d ${PPCLIBRARIES} ]; then
|
||||||
|
echo "Copying static PPC libraries"
|
||||||
|
for obj in ${PPCLIBRARIES}/OpenT*.o ${PPCLIBRARIES}/CarbonAccessors.o ${PPCLIBRARIES}/CursorDevicesGlue.o; do
|
||||||
|
if [ -r $obj ]; then
|
||||||
|
# copy the library:
|
||||||
|
cp $obj toolchain/powerpc-apple-macos/lib/
|
||||||
|
|
||||||
|
# and wrap it in a .a archive for convenience
|
||||||
|
lib=toolchain/powerpc-apple-macos/lib/lib`basename "${obj%.o}"`.a
|
||||||
|
rm -f $lib
|
||||||
|
toolchain/bin/powerpc-apple-macos-ar cqs $lib $obj
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# if [ $BUILD_PPC != false ]; then
|
# if [ $BUILD_PPC != false ]; then
|
||||||
|
|
Loading…
Reference in New Issue
Block a user