blob: 00242449e123773ee5f8c5eca5d86054836e5beb (
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
|
$NetBSD: patch-config_darwin.mk,v 1.1 2022/05/15 02:19:36 dholland Exp $
Halfassed attempt at a config for MacOS based on the existing one for
Rhapsody (aka prelease MacOS from 25 years ago) -- probably won't
work, but will work better than the prior state of not having one at
all.
--- config/Darwin.mk.orig 2022-05-15 02:08:50.742530570 +0000
+++ config/Darwin.mk
@@ -23,11 +23,11 @@
# Version-independent
######################################################################
-ARCH := rhapsody
+ARCH := darwin
ifeq (86,$(findstring 86,$(OS_TEST)))
CPU_ARCH := i386
else
-CPU_ARCH := ppc
+CPU_ARCH := $(OS_TEST)
endif
GFX_ARCH :=
@@ -92,14 +92,12 @@ endif
CC = cc
AR = libtool -static -o $@
-EMACS = /usr/bin/emacs
-PERL = /usr/bin/perl
+EMACS = /usr/bin/true
RANLIB = ranlib
LDFLAGS =
-# -nostdlib gets around the missing -lm problem.
-DSO_LDFLAGS = -arch $(CPU_ARCH) -dynamiclib -nostdlib -lstdc++ -lcc_dynamic -compatibility_version 1 -current_version 1 -all_load -undefined suppress
+DSO_LDFLAGS =
# Comment out MKSHLIB to build only static libraries.
MKSHLIB = $(CC) $(DSO_LDFLAGS)
|