mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 11:40:06 +02:00
clang12: defaults to PIC
This commit is contained in:
@@ -31,7 +31,7 @@ other than the ones listed above.
|
||||
HOMEPAGE="https://www.llvm.org/"
|
||||
COPYRIGHT="2003-2019 University of Illinois at Urbana-Champaign"
|
||||
LICENSE="Apache v2 with LLVM Exception"
|
||||
REVISION="4"
|
||||
REVISION="5"
|
||||
SOURCE_URI="https://github.com/llvm/llvm-project/releases/download/llvmorg-$portVersion/llvm-$portVersion.src.tar.xz"
|
||||
CHECKSUM_SHA256="7d9a8405f557cefc5a21bf5672af73903b64749d9bc3a50322239f56f34ffddf"
|
||||
SOURCE_DIR="llvm-$portVersion.src"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
From 1c9c296d5ce0b393fa0e853b461bcd5b46da978f Mon Sep 17 00:00:00 2001
|
||||
From e8b1dbf36923bb01f6a90cd07264ffce032badef Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Duval?= <jerome.duval@gmail.com>
|
||||
Date: Mon, 18 Jul 2016 14:13:19 +0200
|
||||
Subject: support for secondary arch.
|
||||
@@ -104,10 +104,10 @@ index bc31445..b8ecee0 100644
|
||||
break;
|
||||
case llvm::Triple::RTEMS:
|
||||
--
|
||||
2.30.0
|
||||
2.37.3
|
||||
|
||||
|
||||
From 0b2698769c2911197e61a0589f319cbc29f62c22 Mon Sep 17 00:00:00 2001
|
||||
From 56407cf72646c3e323f080df76b90570f5dadb17 Mon Sep 17 00:00:00 2001
|
||||
From: Jerome Duval <jerome.duval@gmail.com>
|
||||
Date: Thu, 7 Apr 2016 18:30:52 +0000
|
||||
Subject: add a test for haiku driver.
|
||||
@@ -133,10 +133,10 @@ index 0000000..9591739
|
||||
+// CHECK-X86: gcc{{.*}}" "-o" "a.out" "{{.*}}.o"
|
||||
+
|
||||
--
|
||||
2.30.0
|
||||
2.37.3
|
||||
|
||||
|
||||
From 849fae3751214d060a10bfc1b69ed04a89891ae2 Mon Sep 17 00:00:00 2001
|
||||
From d76c6ac9bf0bb54b206d30bc909dacf671d6e4e8 Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Duval?= <jerome.duval@gmail.com>
|
||||
Date: Mon, 18 Jul 2016 14:13:19 +0200
|
||||
Subject: Enable thread-local storage and disable PIE by default
|
||||
@@ -170,5 +170,27 @@ index 2bc9832..50a20c2 100644
|
||||
void addLibCxxIncludePaths(
|
||||
const llvm::opt::ArgList &DriverArgs,
|
||||
--
|
||||
2.30.0
|
||||
2.37.3
|
||||
|
||||
|
||||
From 96eac7cff2953e4f8c3a6f95007033c3f11eca3d Mon Sep 17 00:00:00 2001
|
||||
From: Jerome Duval <jerome.duval@gmail.com>
|
||||
Date: Mon, 13 Feb 2023 16:28:39 +0100
|
||||
Subject: Haiku: defaults to PIC
|
||||
|
||||
|
||||
diff --git a/lib/Driver/ToolChains/Haiku.h b/lib/Driver/ToolChains/Haiku.h
|
||||
index 50a20c2..ac65381 100644
|
||||
--- a/lib/Driver/ToolChains/Haiku.h
|
||||
+++ b/lib/Driver/ToolChains/Haiku.h
|
||||
@@ -23,6 +23,7 @@ public:
|
||||
const llvm::opt::ArgList &Args);
|
||||
|
||||
bool isPIEDefault() const override { return false; }
|
||||
+ bool isPICDefault() const override { return true; }
|
||||
|
||||
void addLibCxxIncludePaths(
|
||||
const llvm::opt::ArgList &DriverArgs,
|
||||
--
|
||||
2.37.3
|
||||
|
||||
|
||||
Reference in New Issue
Block a user