mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-14 07:40:07 +02:00
96 lines
2.9 KiB
Plaintext
96 lines
2.9 KiB
Plaintext
From b3b154c6783c97da7e9336d50016364426cdfa17 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 c5722091d833cc7569a960efa775dc33f2d2a485 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 530c05a..ffa76d2 100644
|
|
--- a/tools/lto/Makefile
|
|
+++ b/tools/lto/Makefile
|
|
@@ -17,6 +17,10 @@ EXPORTED_SYMBOL_FILE = $(PROJ_SRC_DIR)/lto.exports
|
|
|
|
include $(LEVEL)/Makefile.common
|
|
|
|
+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 15f54ff914d0193b2ea2e0a8bb12c0dc4868fb5d 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 879b9ab..0ec9c9d 100644
|
|
--- a/tools/llvm-config/llvm-config.cpp
|
|
+++ b/tools/llvm-config/llvm-config.cpp
|
|
@@ -263,7 +263,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" + LLVM_LIBDIR_SUFFIX;
|
|
ActiveIncludeOption = "-I" + ActiveIncludeDir;
|
|
@@ -323,10 +327,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
|
|
|