From c0179e0856e2485780abc4fda1c465c5257a3f99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Revol?= Date: Mon, 9 Jun 2008 23:29:09 +0000 Subject: [PATCH] Do not use -shared when linking linkhack.so for PPC. It is however needed for other archs. This is a temporary workaround to get the thing building until someone has enough cafein available to update binutils. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25895 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/system/kernel/Jamfile | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/system/kernel/Jamfile b/src/system/kernel/Jamfile index b51b335687..313cde708e 100644 --- a/src/system/kernel/Jamfile +++ b/src/system/kernel/Jamfile @@ -56,11 +56,19 @@ Includes [ FGristFiles syscalls.cpp ] syscall_numbers.h ; +# TODO: fix or update binutils for ppc, in the meantime this should get things going. +local linkHackLdFlags ; +if $(TARGET_ARCH) = ppc { + linkHackLdFlags = -Bdynamic ; +} else { + linkHackLdFlags = -shared -Bdynamic ; +} + KernelLd linkhack.so : <$(SOURCE_GRIST)>linkhack.o : : - -shared -Bdynamic + $(linkHackLdFlags) ; KernelLd kernel_$(TARGET_ARCH) :