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
This commit is contained in:
François Revol 2008-06-09 23:29:09 +00:00
parent 47a197ac3a
commit c0179e0856

View File

@ -56,11 +56,19 @@ Includes [ FGristFiles syscalls.cpp ]
<syscalls>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) :