1 $NetBSD: patch-mb,v 1.3 2012/03/10 03:26:05 ryoon Exp $
3 --- mozilla/xpcom/reflect/xptcall/src/md/unix/Makefile.in.orig 2012-03-13 05:33:19.000000000 +0000
4 +++ mozilla/xpcom/reflect/xptcall/src/md/unix/Makefile.in
5 @@ -82,7 +82,7 @@ endif
9 -ifneq (,$(filter NetBSD OpenBSD BSD_OS GNU,$(OS_ARCH)))
10 +ifneq (,$(filter BSD_OS GNU,$(OS_ARCH)))
11 ifeq (86,$(findstring 86,$(OS_TEST)))
12 CPPSRCS := xptcinvoke_gcc_x86_unix.cpp xptcstubs_gcc_x86_unix.cpp
14 @@ -91,7 +91,7 @@ endif
15 # New code for Linux, et. al., with gcc
16 # Migrate other platforms here after testing
18 -ifneq (,$(filter Linux FreeBSD GNU_%,$(OS_ARCH)))
19 +ifneq (,$(filter Linux FreeBSD DragonFly NetBSD OpenBSD GNU_%,$(OS_ARCH)))
21 ifeq (x86_64,$(OS_TEST))
22 CPPSRCS := xptcinvoke_x86_64_unix.cpp xptcstubs_x86_64_linux.cpp
23 @@ -109,12 +109,6 @@ ASFILES := xptcstubs_asm_ipf64.s xptcin
29 -ifeq ($(OS_ARCH)$(OS_TEST),OpenBSDx86_64)
30 -CPPSRCS := xptcinvoke_amd64_openbsd.cpp xptcstubs_amd64_openbsd.cpp
33 # Neutrino/Intel (uses the same unixish_x86 code)
35 ifeq ($(OS_TARGET),NTO)
36 @@ -190,7 +184,7 @@ endif
39 ifeq ($(OS_ARCH),NetBSD)
40 -ifneq (,$(filter arm% sa110,$(OS_TEST)))
41 +ifneq (,$(filter arm%,$(TARGET_CPU)))
42 CPPSRCS := xptcinvoke_arm_netbsd.cpp xptcstubs_arm_netbsd.cpp
45 @@ -247,7 +241,7 @@ endif
48 ifeq ($(OS_ARCH),NetBSD)
49 -ifneq (,$(filter amiga atari hp300 mac68k mvme68k next68k sun3 sun3x x68k,$(OS_TEST)))
50 +ifneq (,$(filter m68k,$(TARGET_CPU)))
51 CPPSRCS := xptcinvoke_netbsd_m68k.cpp xptcstubs_netbsd_m68k.cpp
54 @@ -319,9 +313,10 @@ endif
58 -ifneq (,$(filter NetBSDmacppc NetBSDbebox NetBSDofppc NetBSDprep NetBSDamigappc,$(OS_ARCH)$(OS_TEST)))
59 +ifeq ($(OS_ARCH)$(OS_TEST),NetBSDpowerpc)
60 CPPSRCS := xptcinvoke_ppc_netbsd.cpp xptcstubs_ppc_netbsd.cpp
61 ASFILES := xptcinvoke_asm_ppc_netbsd.s xptcstubs_asm_ppc_netbsd.s
62 +AS := $(CC) -c -x assembler-with-cpp
66 @@ -387,6 +382,13 @@ CPPSRCS := xptcinvoke_sparc64_openbsd.c
67 ASFILES := xptcinvoke_asm_sparc64_openbsd.s xptcstubs_asm_sparc64_openbsd.s
72 +ifeq ($(OS_ARCH)$(OS_TEST),NetBSDsparc64)
73 +CPPSRCS := xptcinvoke_sparc64_netbsd.cpp xptcstubs_sparc64_netbsd.cpp
74 +ASFILES := xptcinvoke_asm_sparc64_netbsd.s xptcstubs_asm_sparc64_netbsd.s
79 ifeq ($(OS_ARCH),SunOS)