mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-10 05:40:07 +02:00
dmd v2.067.1 is useful to build latest version of dmd, because any version above this require bootstrapping to build.
40 lines
919 B
Plaintext
40 lines
919 B
Plaintext
From 7623d74664b644fb58c692a306d692e601e59900 Mon Sep 17 00:00:00 2001
|
|
From: raefaldhia <raefaldhiamartya@gmail.com>
|
|
Date: Fri, 31 Mar 2017 23:27:45 +0000
|
|
Subject: a
|
|
|
|
|
|
diff --git a/src/osmodel.mak b/src/osmodel.mak
|
|
index f56716a..4e95132 100644
|
|
--- a/src/osmodel.mak
|
|
+++ b/src/osmodel.mak
|
|
@@ -21,6 +21,9 @@ ifeq (,$(OS))
|
|
ifeq (SunOS,$(uname_S))
|
|
OS:=solaris
|
|
endif
|
|
+ ifeq (Haiku,$(uname_S))
|
|
+ OS:=haiku
|
|
+ endif
|
|
ifeq (,$(OS))
|
|
$(error Unrecognized or unsupported OS for uname: $(uname_S))
|
|
endif
|
|
@@ -38,10 +41,14 @@ ifeq (,$(MODEL))
|
|
else
|
|
uname_M:=$(shell uname -m)
|
|
endif
|
|
+ ifeq ($(OS),haiku)
|
|
+ OS:=linux
|
|
+ uname_M:=$(shell uname -p)
|
|
+ endif
|
|
ifneq (,$(findstring $(uname_M),x86_64 amd64))
|
|
MODEL:=64
|
|
endif
|
|
- ifneq (,$(findstring $(uname_M),i386 i586 i686))
|
|
+ ifneq (,$(findstring $(uname_M),x86 i386 i586 i686))
|
|
MODEL:=32
|
|
endif
|
|
ifeq (,$(MODEL))
|
|
--
|
|
2.2.2
|
|
|