summaryrefslogtreecommitdiff
path: root/math/clfft/files/patch-src_include_sharedLibrary.h
diff options
context:
space:
mode:
Diffstat (limited to 'math/clfft/files/patch-src_include_sharedLibrary.h')
-rw-r--r--math/clfft/files/patch-src_include_sharedLibrary.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/math/clfft/files/patch-src_include_sharedLibrary.h b/math/clfft/files/patch-src_include_sharedLibrary.h
new file mode 100644
index 000000000000..22a9956049e0
--- /dev/null
+++ b/math/clfft/files/patch-src_include_sharedLibrary.h
@@ -0,0 +1,17 @@
+--- src/include/sharedLibrary.h.orig 2015-08-07 18:40:37.855840000 -0400
++++ src/include/sharedLibrary.h 2015-08-07 18:40:42.675578000 -0400
+@@ -52,6 +52,14 @@
+ {
+ std::cerr << ::dlerror( ) << std::endl;
+ }
++#elif defined(__FreeBSD__)
++ tstring freebsdName = unixPrefix;
++ freebsdName += libraryName += ".so";
++ void* fileHandle = ::dlopen( freebsdName.c_str( ), RTLD_NOW );
++ if( !quiet && !fileHandle )
++ {
++ std::cerr << ::dlerror( ) << std::endl;
++ }
+ #else
+ #error "unsupported platform"
+ #endif