Skip to content

Commit b30bfd3

Browse files
committed
use explicit PKG_CONFIG_PATH
1 parent d782930 commit b30bfd3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/rbczmq/extconf.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ def check_heads heads = [], fatal = false
119119
lib = libs_path + "libzmq.#{LIBEXT}"
120120
Dir.chdir zmq_path do
121121
sys "./autogen.sh", "ZeroMQ autogen failed!" unless File.exist?(zmq_path + 'configure')
122-
sys "./configure CFLAGS='#{CZMQ_CFLAGS.join(" ")}' CXXFLAGS='#{CZMQ_CFLAGS.join(" ")}' --prefix=#{dst_path} --without-documentation --disable-shared --enable-static --with-libsodium=#{dst_path}",
122+
sys "./configure CFLAGS='#{CZMQ_CFLAGS.join(" ")}' CXXFLAGS='#{CZMQ_CFLAGS.join(" ")}' PKG_CONFIG_PATH='#{libs_path}/pkgconfig' --prefix=#{dst_path} --without-documentation --disable-shared --enable-static --with-libsodium=#{dst_path}",
123123
"ZeroMQ configure failed" unless File.exist?(zmq_path + 'Makefile')
124124
sys "make && make install", "ZeroMQ compile error!"
125125
end
@@ -132,7 +132,7 @@ def check_heads heads = [], fatal = false
132132
lib = libs_path + "libczmq.#{LIBEXT}"
133133
Dir.chdir czmq_path do
134134
sys "./autogen.sh", "CZMQ autogen failed!" unless File.exist?(czmq_path + 'configure')
135-
sys "./configure LDFLAGS='-L#{libs_path} -lm' CFLAGS='#{CZMQ_CFLAGS.join(" ")}' --prefix=#{dst_path} --disable-shared --enable-static --with-libsodium=#{dst_path}",
135+
sys "./configure LDFLAGS='-L#{libs_path} -lm' CFLAGS='#{CZMQ_CFLAGS.join(" ")}' PKG_CONFIG_PATH='#{libs_path}/pkgconfig' --prefix=#{dst_path} --disable-shared --enable-static --with-libsodium=#{dst_path}",
136136
"CZMQ configure error!" unless File.exist?(czmq_path + 'Makefile')
137137
sys "make all && make install", "CZMQ compile error!"
138138
end

0 commit comments

Comments
 (0)