aboutsummaryrefslogtreecommitdiff
path: root/www/firefox/files/patch-js-src-Makefile.in
blob: 75b37bf70bfeeff98c1cdfc3b456384b316f28a3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
--- js/src/Makefile.in.orig	2011-07-06 05:09:22.000000000 +0200
+++ js/src/Makefile.in	2011-07-06 22:23:46.363233778 +0200
@@ -416,7 +416,7 @@
 # END enclude sources for V8 dtoa
 #############################################
 
-ifeq (,$(filter arm% sparc %86 x86_64,$(TARGET_CPU)))
+ifeq (,$(filter arm% sparc %86 amd64 x86_64,$(TARGET_CPU)))
 
 VPATH +=	$(srcdir)/assembler \
 		$(srcdir)/assembler/wtf \
@@ -469,6 +469,9 @@
 else
 #CPPSRCS		+= only_on_x86.cpp
 endif
+ifeq (amd64, $(TARGET_CPU))
+#CPPSRCS                += only_on_x86_64.cpp
+endif
 endif
 ifeq (arm, $(TARGET_CPU))
 #CPPSRCS		+= only_on_arm.cpp
@@ -739,7 +742,7 @@
 # to reliably get limit macros defined, we'd always have to define the
 # one below before including any header, but that's obscure and
 # fragile, so we do it here.
-DEFINES		+= -D__STDC_LIMIT_MACROS
+DEFINES		+= -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS
 
 INCLUDES	+= -I$(srcdir)
 
@@ -793,7 +796,7 @@
 endif # WINNT
 
 ifeq ($(OS_ARCH),FreeBSD)
-EXTRA_LIBS	+= -pthread
+EXTRA_LIBS	+= -pthread -lc
 endif
 ifeq ($(OS_ARCH),IRIX)
 ifdef USE_N32