Skip to content
This repository has been archived by the owner on Feb 1, 2021. It is now read-only.

Commit

Permalink
ext/gsl/extconf.rb: Add narray.so to the list of files to link.
Browse files Browse the repository at this point in the history
Closes #4.
  • Loading branch information
blackwinter committed Apr 15, 2014
1 parent c935212 commit a8ce8f0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ext/gsl/extconf.rb
Expand Up @@ -102,6 +102,8 @@ def gsl_dir_config(target)
if spec = Gem::Specification.find_by_path('narray.h')
$LOCAL_LIBS = "-L#{File.join(narray = spec.full_gem_path, 'src')} " + $LOCAL_LIBS
$CPPFLAGS = "-I#{File.join(narray, spec.require_path)} " + $CPPFLAGS

$LOCAL_LIBS += ' -l:narray.so' unless RUBY_PLATFORM.include?('mingw')
end
rescue LoadError
end
Expand Down

0 comments on commit a8ce8f0

Please sign in to comment.