mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-14 15:50:07 +02:00
49 lines
1.3 KiB
Plaintext
49 lines
1.3 KiB
Plaintext
From 8bf543218812e2419f65ac444edbb2d86bad1708 Mon Sep 17 00:00:00 2001
|
|
From: Alexander von Gluck IV <kallisti5@unixzen.com>
|
|
Date: Wed, 22 Jan 2014 05:04:31 +0000
|
|
Subject: haiku: fix Host.h for endian.h
|
|
|
|
|
|
diff --git a/include/llvm/Support/Host.h b/include/llvm/Support/Host.h
|
|
index 28c4cc7..ab985a4 100644
|
|
--- a/include/llvm/Support/Host.h
|
|
+++ b/include/llvm/Support/Host.h
|
|
@@ -16,7 +16,7 @@
|
|
|
|
#include "llvm/ADT/StringMap.h"
|
|
|
|
-#if defined(__linux__) || defined(__GNU__)
|
|
+#if defined(__linux__) || defined(__GNU__) || defined(__HAIKU__)
|
|
#include <endian.h>
|
|
#else
|
|
#if !defined(BYTE_ORDER) && !defined(LLVM_ON_WIN32)
|
|
--
|
|
1.8.3.4
|
|
|
|
|
|
From 64d6eca1a47b91ff89fc41d8f4eb20b64a0e68d6 Mon Sep 17 00:00:00 2001
|
|
From: Adrien Destugues <pulkomandy@pulkomandy.tk>
|
|
Date: Wed, 18 Jun 2014 15:32:09 +0000
|
|
Subject: llvm: add a soname to libLTO.
|
|
|
|
This makes PrepareInstalledDevelLib happy.
|
|
|
|
diff --git a/tools/lto/Makefile b/tools/lto/Makefile
|
|
index cedbee1..5ce530d 100644
|
|
--- a/tools/lto/Makefile
|
|
+++ b/tools/lto/Makefile
|
|
@@ -22,6 +22,10 @@ ifdef LLVM_VERSION_INFO
|
|
CXX.Flags += -DLLVM_VERSION_INFO='"$(LLVM_VERSION_INFO)"'
|
|
endif
|
|
|
|
+ifeq ($(HOST_OS),Haiku)
|
|
+ LLVMLibsOptions := $(LLVMLibsOptions) -Wl,-soname=$(SharedPrefix)LTO$(SHLIBEXT)
|
|
+endif
|
|
+
|
|
ifeq ($(HOST_OS),Darwin)
|
|
# Special hack to allow libLTO to have an offset version number.
|
|
ifdef LLVM_LTO_VERSION_OFFSET
|
|
--
|
|
1.8.3.4
|
|
|