mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-14 07:40:07 +02:00
96 lines
2.8 KiB
Plaintext
96 lines
2.8 KiB
Plaintext
From 42a5734462221c17c6888e521b53599f37145d43 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 8f4bf3c..8114f9b 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)
|
|
--
|
|
2.2.2
|
|
|
|
|
|
From f2a83ee50fe6b4ad4a79996864a95c1a8ac9145c Mon Sep 17 00:00:00 2001
|
|
From: Adrien Destugues <pulkomandy@pulkomandy.tk>
|
|
Date: Sun, 18 May 2014 12:41:16 +0200
|
|
Subject: libLTO: add soname when building on Haiku.
|
|
|
|
|
|
diff --git a/tools/lto/Makefile b/tools/lto/Makefile
|
|
index a4fe9ac..b667105 100644
|
|
--- a/tools/lto/Makefile
|
|
+++ b/tools/lto/Makefile
|
|
@@ -21,6 +21,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
|
|
--
|
|
2.2.2
|
|
|
|
|
|
From 8829b50366b40ed55c1c54d7b2fce9c1b3b3465c Mon Sep 17 00:00:00 2001
|
|
From: Jerome Duval <jerome.duval@gmail.com>
|
|
Date: Wed, 20 Jan 2016 21:13:28 +0000
|
|
Subject: llvm-config: use /develop/headers instead of /include
|
|
|
|
* don't provide obj-root and src-root.
|
|
|
|
diff --git a/tools/llvm-config/llvm-config.cpp b/tools/llvm-config/llvm-config.cpp
|
|
index ed1c8c3..e22e243 100644
|
|
--- a/tools/llvm-config/llvm-config.cpp
|
|
+++ b/tools/llvm-config/llvm-config.cpp
|
|
@@ -261,7 +261,11 @@ int main(int argc, char **argv) {
|
|
"-I" + ActiveObjRoot + "/include");
|
|
} else {
|
|
ActivePrefix = CurrentExecPrefix;
|
|
+#ifdef __HAIKU__
|
|
+ ActiveIncludeDir = ActivePrefix + "/develop/headers";
|
|
+#else
|
|
ActiveIncludeDir = ActivePrefix + "/include";
|
|
+#endif
|
|
ActiveBinDir = ActivePrefix + "/bin";
|
|
ActiveLibDir = ActivePrefix + "/lib";
|
|
ActiveIncludeOption = "-I" + ActiveIncludeDir;
|
|
@@ -321,10 +325,16 @@ int main(int argc, char **argv) {
|
|
#else
|
|
OS << "ON\n";
|
|
#endif
|
|
- } else if (Arg == "--obj-root") {
|
|
- OS << ActivePrefix << '\n';
|
|
- } else if (Arg == "--src-root") {
|
|
- OS << LLVM_SRC_ROOT << '\n';
|
|
+ } else if (Arg == "--obj-root" || Arg == "--src-root") {
|
|
+ if (IsInDevelopmentTree) {
|
|
+ if (Arg == "--obj-root")
|
|
+ OS << ActivePrefix << '\n';
|
|
+ else
|
|
+ OS << LLVM_SRC_ROOT << '\n';
|
|
+ } else {
|
|
+ llvm::errs() << "llvm-config: sources not installed\n";
|
|
+ exit(1);
|
|
+ }
|
|
} else {
|
|
usage();
|
|
}
|
|
--
|
|
2.2.2
|
|
|