From 37f260bbd4f23b394a87d5bee0d2d537f058891b Mon Sep 17 00:00:00 2001 From: Martin Husemann Date: Sun, 22 Sep 2024 11:56:04 +0200 Subject: [PATCH] Make NetBSD use the same xptcall support as others. These functions are only ELF ABI specific, not really OS specific. Add powerpc, powerpc64 and sparc64 support for NetBSD by using the same code as other ELF systems do. --- xpcom/reflect/xptcall/md/unix/moz.build | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/xpcom/reflect/xptcall/md/unix/moz.build b/xpcom/reflect/xptcall/md/unix/moz.build index 7ab7e73654..4b44143ad8 100644 --- a/xpcom/reflect/xptcall/md/unix/moz.build +++ b/xpcom/reflect/xptcall/md/unix/moz.build @@ -136,7 +136,7 @@ if CONFIG['OS_ARCH'] in ('Linux', 'FreeBSD', 'NetBSD', 'OpenBSD'): ] if CONFIG['OS_TEST'] == 'powerpc': - if CONFIG['OS_ARCH'] in ('Linux', 'FreeBSD'): + if CONFIG['OS_ARCH'] in ('Linux', 'FreeBSD', 'NetBSD'): SOURCES += [ 'xptcinvoke_asm_ppc_linux.S', 'xptcinvoke_ppc_linux.cpp', @@ -145,7 +145,7 @@ if CONFIG['OS_TEST'] == 'powerpc': ] if CONFIG['OS_TEST'] in ('powerpc64', 'powerpc64le'): - if CONFIG['OS_ARCH'] in ('Linux', 'FreeBSD'): + if CONFIG['OS_ARCH'] in ('Linux', 'FreeBSD', 'NetBSD'): SOURCES += [ 'xptcinvoke_asm_ppc64_linux.S', 'xptcinvoke_ppc64_linux.cpp', @@ -198,7 +198,7 @@ if CONFIG['OS_ARCH'] == 'OpenBSD' and CONFIG['OS_TEST'] == 'sparc': # files for 64-bit SPARC with no ill effects, so basically the entire mess that # was there before is no longer needed. -if CONFIG['OS_ARCH'] in ('OpenBSD', 'FreeBSD', 'SunOS', 'Linux') and CONFIG['OS_TEST'] == 'sparc64': +if CONFIG['OS_ARCH'] in ('NetBSD', 'OpenBSD', 'FreeBSD', 'SunOS', 'Linux') and CONFIG['OS_TEST'] == 'sparc64': SOURCES += [ 'xptcinvoke_asm_sparc64_openbsd.s', 'xptcinvoke_sparc64_openbsd.cpp',