SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
14
lang/ldc/patches/patch-driver_targetmachine_cpp
Normal file
14
lang/ldc/patches/patch-driver_targetmachine_cpp
Normal file
|
@ -0,0 +1,14 @@
|
|||
Taken from ports LLVM.
|
||||
|
||||
Index: driver/targetmachine.cpp
|
||||
--- driver/targetmachine.cpp.orig
|
||||
+++ driver/targetmachine.cpp
|
||||
@@ -444,6 +444,8 @@ createTargetMachine(const std::string targetTriple, co
|
||||
// these OSes.
|
||||
// On Android, PIC is default as well.
|
||||
relocModel = llvm::Reloc::PIC_;
|
||||
+ } else if (triple.isOSOpenBSD()) {
|
||||
+ relocModel = llvm::Reloc::PIC_;
|
||||
} else {
|
||||
// ARM for other than Darwin or Android defaults to static
|
||||
switch (triple.getArch()) {
|
Loading…
Add table
Add a link
Reference in a new issue