dep_selector 1.0.2 → 1.0.3.rc.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a88c054c230ac9cd8c865c8d472e261540f95a7b
4
- data.tar.gz: cd0c15522d2f07bb2fdad89303aaa262d0f9ac95
3
+ metadata.gz: 2fb45b4a58da3f5eda14db0f923b8a8ade1eb25c
4
+ data.tar.gz: b345e1d830ca520b50a0890d3e918c3a9896a3dd
5
5
  SHA512:
6
- metadata.gz: 9e2460fff1a9c57fe68f1b3a9477d12961d20971ccfbe4cd0c2b1c4806d0df56b9bda4ef9c8a2c71ba2ebd4e4ccfc5806208f3246938303a0356e3fb69d0dcb4
7
- data.tar.gz: c08199238f23ee78a3f7f0a2291da65bafde6b328807ed66d95aa8e519150ec84d055feef98d9c3c7aca43b4c73c55d57106269ea5ec3c4cd57970f7da2d40bc
6
+ metadata.gz: f03bb41af436849192ed36d2b7ca3fc3184bff4d4a61ced744736208f35a6ecf264b9a0e1116f2b49a039991b2a5b61107fbe7e295251e2d4de2a583dd512a4c
7
+ data.tar.gz: 7808dd9755196b5cdc096f2d5dcc06a08ca91268241ba7e017db60fae5951f60ae28d31a7bee9061e28e65105bd91cf069160be265683da3c5e419270070a195
@@ -28,7 +28,20 @@ if !defined?(RUBY_ENGINE) || RUBY_ENGINE == 'ruby' || RUBY_ENGINE == 'rbx'
28
28
 
29
29
  opt_path = DepSelectorLibgecode.opt_path
30
30
  include_path = DepSelectorLibgecode.include_path
31
- find_library("gecodesupport", nil, opt_path)
31
+ if find_library("gecodesupport", nil, opt_path)
32
+
33
+ # Ruby sometimes has a blank RPATHFLAG, even though it's on a system that
34
+ # really should be setting rpath flags. If there _is_ an rpath flag we'll
35
+ # honor it, but if not, we'll assume that ruby is lying and set it
36
+ # ourselves.
37
+ #
38
+ # See also: https://github.com/opscode/dep-selector/issues/23
39
+ ruby_rpathflag = RbConfig::MAKEFILE_CONFIG["RPATHFLAG"]
40
+ if ruby_rpathflag.nil? || ruby_rpathflag.empty?
41
+ hax_rpath_flags = " -Wl,-rpath,%1$-s" % [opt_path]
42
+ $DLDFLAGS << hax_rpath_flags
43
+ end
44
+ end
32
45
  # find_header doesn't seem to work for stuff like `gecode/thing.hh`
33
46
  $INCFLAGS << " -I#{include_path}"
34
47
 
@@ -1,3 +1,3 @@
1
1
  module DepSelector
2
- VERSION = "1.0.2"
2
+ VERSION = "1.0.3.rc.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dep_selector
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3.rc.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christopher Walters
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-04-17 00:00:00.000000000 Z
12
+ date: 2014-04-21 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: ffi
@@ -129,9 +129,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
129
129
  version: 1.9.2
130
130
  required_rubygems_version: !ruby/object:Gem::Requirement
131
131
  requirements:
132
- - - '>='
132
+ - - '>'
133
133
  - !ruby/object:Gem::Version
134
- version: '0'
134
+ version: 1.3.1
135
135
  requirements:
136
136
  - gecode, version 3.5 or greater
137
137
  - g++