aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lang/ldc/Makefile2
-rw-r--r--lang/ldc/files/patch-driver_linker-gcc.cpp8
-rw-r--r--lang/ldc/files/patch-driver_targetmachine.cpp4
-rw-r--r--lang/ldc/files/patch-runtime_CMakeLists.txt6
4 files changed, 10 insertions, 10 deletions
diff --git a/lang/ldc/Makefile b/lang/ldc/Makefile
index 59900d46f38f..365ac3ffb781 100644
--- a/lang/ldc/Makefile
+++ b/lang/ldc/Makefile
@@ -1,9 +1,9 @@
PORTNAME= ldc
PORTVERSION= 1.30.0
+DISTVERSIONSUFFIX= -src
PORTREVISION= 1
CATEGORIES= lang
MASTER_SITES= https://github.com/ldc-developers/${PORTNAME}/releases/download/v${DISTVERSION}/
-DISTVERSIONSUFFIX= -src
MAINTAINER= acm@FreeBSD.org
COMMENT= LLVM-based D compiler
diff --git a/lang/ldc/files/patch-driver_linker-gcc.cpp b/lang/ldc/files/patch-driver_linker-gcc.cpp
index 563392761cad..0c56180f545a 100644
--- a/lang/ldc/files/patch-driver_linker-gcc.cpp
+++ b/lang/ldc/files/patch-driver_linker-gcc.cpp
@@ -1,8 +1,8 @@
---- driver/linker-gcc.cpp 2020-06-16 16:15:55 UTC
+--- driver/linker-gcc.cpp.orig 2022-07-20 17:05:27 UTC
+++ driver/linker-gcc.cpp
-@@ -647,6 +647,8 @@ void ArgsBuilder::addDefaultPlatformLibs() {
- args.push_back("-ldl");
- // fallthrough
+@@ -659,6 +659,8 @@ void ArgsBuilder::addDefaultPlatformLibs() {
+ case llvm::Triple::Darwin:
+ case llvm::Triple::MacOSX:
case llvm::Triple::FreeBSD:
+ args.push_back("-lexecinfo"); // for static druntime
+ // fallthrough
diff --git a/lang/ldc/files/patch-driver_targetmachine.cpp b/lang/ldc/files/patch-driver_targetmachine.cpp
index daeba1879579..fe4b0af6193a 100644
--- a/lang/ldc/files/patch-driver_targetmachine.cpp
+++ b/lang/ldc/files/patch-driver_targetmachine.cpp
@@ -1,6 +1,6 @@
---- driver/targetmachine.cpp 2020-06-16 18:15:55 UTC
+--- driver/targetmachine.cpp.orig 2022-07-20 17:05:27 UTC
+++ driver/targetmachine.cpp
-@@ -444,6 +444,10 @@ createTargetMachine(const std::string targetTriple, co
+@@ -431,6 +431,10 @@ createTargetMachine(const std::string targetTriple, co
// these OSes.
// On Android, PIC is default as well.
relocModel = llvm::Reloc::PIC_;
diff --git a/lang/ldc/files/patch-runtime_CMakeLists.txt b/lang/ldc/files/patch-runtime_CMakeLists.txt
index 2f7437b56157..7461ce6ca1af 100644
--- a/lang/ldc/files/patch-runtime_CMakeLists.txt
+++ b/lang/ldc/files/patch-runtime_CMakeLists.txt
@@ -1,6 +1,6 @@
---- runtime/CMakeLists.txt 2022-07-20 12:05:27.000000000 -0500
-+++ runtime/CMakeLists.txt 2022-11-13 19:53:33.442980000 -0500
-@@ -123,6 +123,8 @@
+--- runtime/CMakeLists.txt.orig 2022-07-20 17:05:27 UTC
++++ runtime/CMakeLists.txt
+@@ -123,6 +123,8 @@ if("${C_SYSTEM_LIBS}" STREQUAL "AUTO")
set(C_SYSTEM_LIBS m c)
elseif("${TARGET_SYSTEM}" MATCHES "Linux")
set(C_SYSTEM_LIBS m pthread rt dl)