summaryrefslogtreecommitdiff
path: root/lang/spidermonkey/patches
diff options
context:
space:
mode:
authortron <tron@pkgsrc.org>2006-08-04 13:22:11 +0000
committertron <tron@pkgsrc.org>2006-08-04 13:22:11 +0000
commitfe740b1526950e1560a78f407634fe5fb1fe7083 (patch)
tree5f7c79c9b9ebf3638c82bfad32cd1d886413a1ad /lang/spidermonkey/patches
parent71e149a97cf49acfc821bb424fa6bba2d43c8f21 (diff)
downloadpkgsrc-fe740b1526950e1560a78f407634fe5fb1fe7083.tar.gz
Make this build under Mac OS X.
Diffstat (limited to 'lang/spidermonkey/patches')
-rw-r--r--lang/spidermonkey/patches/patch-ac44
1 files changed, 44 insertions, 0 deletions
diff --git a/lang/spidermonkey/patches/patch-ac b/lang/spidermonkey/patches/patch-ac
new file mode 100644
index 00000000000..4aba82c8a24
--- /dev/null
+++ b/lang/spidermonkey/patches/patch-ac
@@ -0,0 +1,44 @@
+$NetBSD: patch-ac,v 1.1 2006/08/04 13:22:11 tron Exp $
+
+--- config/Darwin.mk.orig 2005-02-12 20:10:33.000000000 +0000
++++ config/Darwin.mk 2006-08-04 13:58:18.000000000 +0100
+@@ -43,13 +43,13 @@
+ # Just ripped from Linux config
+ #
+
+-CC = cc
++CC = gcc
+ CCC = g++
+-CFLAGS += -Wall -Wno-format
++CFLAGS += -Wall -Wno-format -no-cpp-precomp -fno-common -pipe
+ OS_CFLAGS = -DXP_UNIX -DSVR4 -DSYSV -D_BSD_SOURCE -DPOSIX_SOURCE -DDARWIN
+
+ RANLIB = ranlib
+-MKSHLIB = libtool $(XMKSHLIBOPTS) -framework System
++MKSHLIB = $(CC) -framework System -dynamiclib $(XMKSHLIBOPTS)
+
+ #.c.o:
+ # $(CC) -c -MD $*.d $(CFLAGS) $<
+@@ -57,7 +57,6 @@
+ CPU_ARCH = $(shell uname -m)
+ ifeq (86,$(findstring 86,$(CPU_ARCH)))
+ CPU_ARCH = x86
+-OS_CFLAGS+= -DX86_LINUX
+ endif
+ GFX_ARCH = x
+
+@@ -65,14 +64,6 @@
+
+ ASFLAGS += -x assembler-with-cpp
+
+-ifeq ($(CPU_ARCH),alpha)
+-
+-# Ask the C compiler on alpha linux to let us work with denormalized
+-# double values, which are required by the ECMA spec.
+-
+-OS_CFLAGS += -mieee
+-endif
+-
+ # Use the editline library to provide line-editing support.
+ JS_EDITLINE = 1
+