setup libs for powerpc

This commit is contained in:
Wolfgang Thaller 2015-09-08 18:04:15 +02:00
parent c79a973691
commit 3ae6b24cca
3 changed files with 7 additions and 6 deletions

BIN
ImportLibraries/libInterfaceLib.a Executable file

Binary file not shown.

View File

@ -21,7 +21,7 @@ set -e
SRC=$(cd `dirname $0` && pwd -P)
PREFIX=`pwd -P`/toolchain/
BINUTILS=`pwd -P`/binutils-build
if false; then
# Remove old install tree
rm -rf toolchain
mkdir -p toolchain
@ -85,7 +85,6 @@ make
make install
cd ..
fi
# Install Universal Interfaces
for arch in m68k powerpc; do
sh "$SRC/prepare-headers.sh" "$SRC/CIncludes" toolchain/${arch}-apple-macos/include
@ -93,6 +92,8 @@ for arch in m68k powerpc; do
sh "$SRC/prepare-rincludes.sh" "$SRC/RIncludes" toolchain/${arch}-apple-macos/RIncludes
done
cp $SRC/ImportLibraries/*.a toolchain/powerpc-apple-macos/lib/
# Build host-based components
mkdir -p build-host
cd build-host

View File

@ -69,7 +69,7 @@
/* Profiled library versions are used by linking with special directories. */
#define LIB_SPEC "-lc"
#define LIBGCC_SPEC "-lretrocrt -lgcc"
#define LIBGCC_SPEC "-lretrocrt -lgcc -lInterfaceLib"
/* Static linking with shared libstdc++ requires libsupc++ as well. */
#define LIBSTDCXX_STATIC "supc++"
@ -158,13 +158,14 @@
while (0)
/* --no-check-sections : sections overlap on purpose!
--bnogc : something's going wrong when csects are gc'ed
-undefined=_consolewrite : hack to allow easy configuration of console output
*/
#define LINK_SPEC "%{!r:-btextro} -bhalt:4 -bnodelcsect \
--no-check-sections -bnogc \
--no-check-sections -undefined=_consolewrite \
%{shared:-bM:SRE}"
#undef STARTFILE_SPEC
#define STARTFILE_SPEC ""
@ -191,7 +192,6 @@
#undef PTRDIFF_TYPE
#define PTRDIFF_TYPE "long int"
#if 0
/* The AIX linker will discard static constructors in object files before
collect has a chance to see them, so scan the object files directly. */