aboutsummaryrefslogtreecommitdiff
path: root/devel/llvm-devel/files/patch-flang-rt_lib_runtime_environment.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'devel/llvm-devel/files/patch-flang-rt_lib_runtime_environment.cpp')
-rw-r--r--devel/llvm-devel/files/patch-flang-rt_lib_runtime_environment.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/devel/llvm-devel/files/patch-flang-rt_lib_runtime_environment.cpp b/devel/llvm-devel/files/patch-flang-rt_lib_runtime_environment.cpp
new file mode 100644
index 000000000000..fb24366a9bd7
--- /dev/null
+++ b/devel/llvm-devel/files/patch-flang-rt_lib_runtime_environment.cpp
@@ -0,0 +1,10 @@
+--- flang-rt/lib/runtime/environment.cpp.orig
++++ flang-rt/lib/runtime/environment.cpp
+@@ -18,6 +18,7 @@
+ #ifdef _WIN32
+ extern char **_environ;
+ #elif defined(__FreeBSD__)
++#include <dlfcn.h>
+ // FreeBSD has environ in crt rather than libc. Using "extern char** environ"
+ // in the code of a shared library makes it fail to link with -Wl,--no-undefined
+ // See https://reviews.freebsd.org/D30842#840642