FreeBSD Bugzilla – Attachment 207985 Details for
Bug 240968
Mk/bsd.port.mk: detect powerpc64 abi
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
patch
mk.diff (text/plain), 1.28 KB, created by
Mikael Urankar
on 2019-10-01 12:56:56 UTC
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
Mikael Urankar
Created:
2019-10-01 12:56:56 UTC
Size:
1.28 KB
patch
obsolete
>Index: Mk/Uses/cargo.mk >=================================================================== >--- Mk/Uses/cargo.mk (revision 513462) >+++ Mk/Uses/cargo.mk (working copy) >@@ -74,7 +74,7 @@ > RUSTFLAGS+= ${CFLAGS:M-mcpu=*:S/-mcpu=/-C target-cpu=/} > .endif > >-.if ${ARCH} == powerpc64 >+.if ${ARCH} == powerpc64 && ${PPC_ABI} == ELFv1 > USE_GCC?= yes > .endif > >Index: Mk/bsd.gecko.mk >=================================================================== >--- Mk/bsd.gecko.mk (revision 513462) >+++ Mk/bsd.gecko.mk (working copy) >@@ -329,7 +329,9 @@ > .elif ${ARCH:Mpowerpc*} > . if ${ARCH} == "powerpc64" > MOZ_EXPORT+= UNAME_m="${ARCH}" >+. if ${PPC_ABI} == ELFv1 > CFLAGS+= -mminimal-toc >+. endif > . endif > .elif ${ARCH} == "sparc64" > # Work around miscompilation/mislinkage of the sCanonicalVTable hacks. >Index: Mk/bsd.port.mk >=================================================================== >--- Mk/bsd.port.mk (revision 513462) >+++ Mk/bsd.port.mk (working copy) >@@ -1126,6 +1126,13 @@ > .endif > _EXPORTED_VARS+= ARCH > >+.if ${ARCH} == powerpc64 >+PPC_ABI!= ${CC} -dM -E - < /dev/null | ${AWK} '/_CALL_ELF/{print "ELFv"$$3}' >+. if ${PPC_ABI} != ELFv2 >+PPC_ABI= ELFv1 >+. endif >+.endif >+ > # Get operating system versions for a cross build > .if defined(CROSS_SYSROOT) > .if !exists(${CROSS_SYSROOT}/usr/include/sys/param.h)
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 240968
:
207985
|
208007
|
208009
Working