mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-20 00:21:35 +00:00
lang/ldc: Make portlint friendly
PR: 264100 Reported by: jwb
This commit is contained in:
parent
36a871b3bb
commit
faab0eb2be
@ -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
|
||||
|
@ -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
|
||||
|
@ -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_;
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user