mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-08-03 01:38:07 -04:00
52 lines
1.3 KiB
Plaintext
52 lines
1.3 KiB
Plaintext
$NetBSD: patch-ac,v 1.6 2011/12/07 05:16:28 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,17 +67,12 @@ 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
|
|
|
|
# Don't allow Makefile.ref to use libmath
|
|
NO_LIBM = 1
|
|
|
|
+OS_CFLAGS += -DHAVE_VA_COPY -DVA_COPY=va_copy
|
|
+OS_CFLAGS += -DPIC -fPIC -DJS_HAVE_LONG_LONG -DHAVE_INTTYPES_H
|
|
+
|