presence of InterfaceLib should be optional
This commit is contained in:
parent
0775243ab8
commit
206db120f4
|
@ -92,10 +92,8 @@ function locateAndCheckInterfacesAndLibraries()
|
||||||
if locateInterfaceThing INTERFACELIB InterfaceLib; then
|
if locateInterfaceThing INTERFACELIB InterfaceLib; then
|
||||||
SHAREDLIBRARIES=`dirname "$INTERFACELIB"`
|
SHAREDLIBRARIES=`dirname "$INTERFACELIB"`
|
||||||
else
|
else
|
||||||
echo "Could not find InterfaceLib anywhere inside InterfaceAndLibraries/"
|
SHAREDLIBRARIES=""
|
||||||
echo "(This file is required for PowerPC support only)"
|
echo "Could not find InterfaceLib, using included import libraries."
|
||||||
echo
|
|
||||||
explainInterfaces
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if locateInterfaceThing OPENTRANSPORTAPPPPC OpenTransportAppPPC.o; then
|
if locateInterfaceThing OPENTRANSPORTAPPPPC OpenTransportAppPPC.o; then
|
||||||
|
@ -219,10 +217,12 @@ function setUpInterfacesAndLibraries()
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ $BUILD_PPC != false ]; then
|
if [ $BUILD_PPC != false ]; then
|
||||||
case `ResInfo -n "$INTERFACELIB" || echo 0` in
|
case `ResInfo -n "$INTERFACELIB" > /dev/null || echo 0` in
|
||||||
0)
|
0)
|
||||||
echo "WARNING: Couldn't read resource fork for \"$INTERFACELIB\"."
|
if [ -n "$INTERFACELIB" ]; then
|
||||||
echo " Falling back to included import libraries."
|
echo "WARNING: Couldn't read resource fork for \"$INTERFACELIB\"."
|
||||||
|
echo " Falling back to included import libraries."
|
||||||
|
fi
|
||||||
echo "Copying readymade PowerPC import libraries..."
|
echo "Copying readymade PowerPC import libraries..."
|
||||||
cp $SRC/ImportLibraries/*.a $PREFIX/powerpc-apple-macos/lib/
|
cp $SRC/ImportLibraries/*.a $PREFIX/powerpc-apple-macos/lib/
|
||||||
;;
|
;;
|
||||||
|
|
Loading…
Reference in New Issue