rbczmq 0.2 → 0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -42,6 +42,8 @@ def check_heads heads = [], fatal = false
42
42
  heads.all? { |head| have_header(head) || (abort("could not find header: #{head}") if fatal)}
43
43
  end
44
44
 
45
+ CZMQ_CFLAGS = []
46
+
45
47
  case RUBY_PLATFORM
46
48
  when /mswin32/, /mingw32/, /bccwin32/
47
49
  check_heads(%w[windows.h winsock.h], true)
@@ -85,6 +87,9 @@ when /darwin/
85
87
  when /aix/
86
88
  CONFIG['LDSHARED'] = "$(CXX) -shared -Wl,-G -Wl,-brtl"
87
89
 
90
+ when /linux/
91
+ CZMQ_CFLAGS << "-fPIC"
92
+
88
93
  else
89
94
  # on Unix we need a g++ link, not gcc.
90
95
  CONFIG['LDSHARED'] = "$(CXX) -shared"
@@ -110,7 +115,7 @@ end unless File.exist?(lib)
110
115
  lib = libs_path + "libczmq.#{LIBEXT}"
111
116
  Dir.chdir czmq_path do
112
117
  sys "./autogen.sh", "CZMQ autogen failed!" unless File.exist?(czmq_path + 'configure')
113
- sys "./configure LDFLAGS=-L#{libs_path} --prefix=#{dst_path} --with-libzmq=#{dst_path} --disable-shared && make all && make install", "CZMQ compile error!"
118
+ sys "./configure LDFLAGS=-L#{libs_path} CFLAGS=#{CZMQ_CFLAGS.join(" ")} --prefix=#{dst_path} --with-libzmq=#{dst_path} --disable-shared && make all && make install", "CZMQ compile error!"
114
119
  end unless File.exist?(lib)
115
120
 
116
121
  dir_config('rbczmq')
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
2
 
3
3
  module ZMQ
4
- VERSION = "0.2"
4
+ VERSION = "0.3"
5
5
  end
metadata CHANGED
@@ -1,12 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rbczmq
3
3
  version: !ruby/object:Gem::Version
4
- hash: 4423076201732757652
4
+ hash: 13
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
- - 2
9
- version: "0.2"
8
+ - 3
9
+ version: "0.3"
10
10
  platform: ruby
11
11
  authors:
12
12
  - "Lourens Naud\xC3\xA9"
@@ -15,8 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-04-09 00:00:00 +01:00
19
- default_executable:
18
+ date: 2012-04-18 00:00:00 Z
20
19
  dependencies:
21
20
  - !ruby/object:Gem::Dependency
22
21
  name: rake-compiler
@@ -26,7 +25,7 @@ dependencies:
26
25
  requirements:
27
26
  - - ~>
28
27
  - !ruby/object:Gem::Version
29
- hash: 289844351982071926
28
+ hash: 63
30
29
  segments:
31
30
  - 0
32
31
  - 8
@@ -145,7 +144,6 @@ files:
145
144
  - test/test_threading.rb
146
145
  - test/test_timer.rb
147
146
  - test/test_zmq.rb
148
- has_rdoc: true
149
147
  homepage: http://github.com/methodmissing/rbczmq
150
148
  licenses: []
151
149
 
@@ -159,7 +157,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
159
157
  requirements:
160
158
  - - ">="
161
159
  - !ruby/object:Gem::Version
162
- hash: 2002549777813010636
160
+ hash: 3
163
161
  segments:
164
162
  - 0
165
163
  version: "0"
@@ -168,14 +166,14 @@ required_rubygems_version: !ruby/object:Gem::Requirement
168
166
  requirements:
169
167
  - - ">="
170
168
  - !ruby/object:Gem::Version
171
- hash: 2002549777813010636
169
+ hash: 3
172
170
  segments:
173
171
  - 0
174
172
  version: "0"
175
173
  requirements: []
176
174
 
177
175
  rubyforge_project:
178
- rubygems_version: 1.5.2
176
+ rubygems_version: 1.8.15
179
177
  signing_key:
180
178
  specification_version: 3
181
179
  summary: "Ruby extension for CZMQ - High-level C Binding for \xC3\x98MQ (http://czmq.zeromq.org)"