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:
@@ -56,11 +56,19 @@ Includes [ FGristFiles syscalls.cpp ]
|
|||||||
<syscalls>syscall_numbers.h
|
<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 :
|
KernelLd linkhack.so :
|
||||||
<$(SOURCE_GRIST)>linkhack.o
|
<$(SOURCE_GRIST)>linkhack.o
|
||||||
:
|
:
|
||||||
:
|
:
|
||||||
-shared -Bdynamic
|
$(linkHackLdFlags)
|
||||||
;
|
;
|
||||||
|
|
||||||
KernelLd kernel_$(TARGET_ARCH) :
|
KernelLd kernel_$(TARGET_ARCH) :
|
||||||
|
|||||||
Reference in New Issue
Block a user