Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gsll
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Selwyn Simsek
gsll
Commits
8a3c777b
Commit
8a3c777b
authored
Aug 16, 2010
by
Liam Healy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improved finding of libraries for OS X, by Leo
parent
bc4d0b9a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
init/init.lisp
init/init.lisp
+9
-4
No files found.
init/init.lisp
View file @
8a3c777b
;; Load GSL
;; Load GSL
;; Liam Healy Sat Mar 4 2006 - 18:53
;; Liam Healy Sat Mar 4 2006 - 18:53
;; Time-stamp: <2010-08-1
3 13:54:07
EDT init.lisp>
;; Time-stamp: <2010-08-1
6 23:08:13
EDT init.lisp>
;;
;;
;; Copyright 2006, 2007, 2008, 2009, 2010 Liam M. Healy
;; Copyright 2006, 2007, 2008, 2009, 2010 Liam M. Healy
;; Distributed under the terms of the GNU General Public License
;; Distributed under the terms of the GNU General Public License
...
@@ -31,6 +31,8 @@
...
@@ -31,6 +31,8 @@
#:cl-array
#:dimensions
#:element-type
#:dim0
#:dim1
#:cl-array
#:dimensions
#:element-type
#:dim0
#:dim1
#:copy
))
#:copy
))
(
in-package
:gsl
)
(
eval-when
(
:compile-toplevel
:load-toplevel
:execute
)
(
eval-when
(
:compile-toplevel
:load-toplevel
:execute
)
(
defun
gsl-config
(
arg
)
(
defun
gsl-config
(
arg
)
"A wrapper for tool `gsl-config'."
"A wrapper for tool `gsl-config'."
...
@@ -38,10 +40,13 @@
...
@@ -38,10 +40,13 @@
(
s
(
with-output-to-string
(
asdf::*verbose-out*
)
(
s
(
with-output-to-string
(
asdf::*verbose-out*
)
(
asdf:run-shell-command
"gsl-config ~s"
arg
)))
(
asdf:run-shell-command
"gsl-config ~s"
arg
)))
(
read-line
s
)
(
read-line
s
)
(
read-line
s
))))
(
read-line
s
)))
#+
unix
(
defun
gsl-config-pathname
(
pn
)
(
merge-pathnames
pn
(
pathname
(
format
nil
"~a/"
(
gsl-config
"--prefix"
))))))
(
cffi:define-foreign-library
libgslcblas
(
cffi:define-foreign-library
libgslcblas
(
:darwin
"libgslcblas.dylib"
)
(
:darwin
#.
(
gsl-config-pathname
"lib/libgslcblas.dylib"
)
)
(
:cygwin
"cyggslcblas-0.dll"
)
(
:cygwin
"cyggslcblas-0.dll"
)
(
:unix
(
:or
"libgslcblas.so.0"
"libgslcblas.so"
))
(
:unix
(
:or
"libgslcblas.so.0"
"libgslcblas.so"
))
(
t
(
:default
"libgslcblas"
)))
(
t
(
:default
"libgslcblas"
)))
...
@@ -55,7 +60,7 @@
...
@@ -55,7 +60,7 @@
(
cffi:load-foreign-library
"/lib/lapack/cygblas.dll"
)
(
cffi:load-foreign-library
"/lib/lapack/cygblas.dll"
)
(
cffi:define-foreign-library
libgsl
(
cffi:define-foreign-library
libgsl
(
:darwin
"libgsl.dylib"
)
(
:darwin
#.
(
gsl-config-pathname
"lib/libgsl.dylib"
)
)
(
:cygwin
"cyggsl-0.dll"
)
(
:cygwin
"cyggsl-0.dll"
)
(
:unix
(
:or
"libgsl.so.0"
"libgsl.so"
))
(
:unix
(
:or
"libgsl.so.0"
"libgsl.so"
))
(
t
(
:default
"libgsl"
)))
(
t
(
:default
"libgsl"
)))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment