[clfft] 94/128: Support FreeBSD in shared library switch. This is identical to the Linux case.

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Thu Oct 22 14:54:43 UTC 2015


This is an automated email from the git hooks/post-receive script.

ghisvail-guest pushed a commit to branch master
in repository clfft.

commit 4ed5802089e3d4ec9615676854227cb384650300
Author: J M Dieterich <dieterich at ogolem.org>
Date:   Sat Oct 3 00:24:12 2015 -0400

    Support FreeBSD in shared library switch. This is identical to the Linux case.
---
 src/include/sharedLibrary.h | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/src/include/sharedLibrary.h b/src/include/sharedLibrary.h
index 84027a4..4e1751b 100644
--- a/src/include/sharedLibrary.h
+++ b/src/include/sharedLibrary.h
@@ -52,6 +52,14 @@ inline void* LoadSharedLibrary( std::string unixPrefix, std::string libraryName,
   {
           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

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/clfft.git



More information about the debian-science-commits mailing list