blob: 39b8e59f77591ed52352b528a4c4079f2c1f3643 (
plain)
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
40
41
42
43
44
45
|
$NetBSD: patch-ac,v 1.5 2011/12/06 05:54:06 yyamano Exp $
--- config/Darwin.mk.orig 2008-03-02 23:10:49.000000000 +0000
+++ config/Darwin.mk
@@ -43,13 +43,14 @@
# Just ripped from Linux config
#
-CC = cc
+CC = gcc
CCC = g++
-CFLAGS += -Wall -Wno-format -MMD
+CFLAGS += -Wall -Wno-format -MMD -no-cpp-precomp -fno-common -pipe
OS_CFLAGS = -DXP_UNIX -DSVR4 -DSYSV -D_BSD_SOURCE -DPOSIX_SOURCE -DDARWIN
+INTERP_CFLAGS+= `pkg-config --cflags-only-I nspr`
RANLIB = ranlib
-MKSHLIB = $(CC) -dynamiclib $(XMKSHLIBOPTS) -framework System
+MKSHLIB = $(CC) -dynamiclib $(XMKSHLIBOPTS) -framework System -lm `pkg-config --libs nspr` $(LDFLAGS)
SO_SUFFIX = dylib
@@ -59,7 +60,6 @@ SO_SUFFIX = dylib
CPU_ARCH = $(shell uname -m)
ifeq (86,$(findstring 86,$(CPU_ARCH)))
CPU_ARCH = x86
-OS_CFLAGS+= -DX86_LINUX
endif
GFX_ARCH = x
@@ -67,14 +67,6 @@ OS_LIBS = -lc -framework System
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
|