Commit 7c1929f7 authored by Colin Shea's avatar Colin Shea Committed by Colin Shea

Use libdir from RbConfig to detect lib vs lib64

parent 5c69d77e
......@@ -11,7 +11,9 @@ end
require 'mkmf'
require 'fileutils'
unless File.exists?("#{CWD}/dst/lib/libmsgpackc.a")
libdir = File.basename RbConfig::CONFIG['libdir']
unless File.exists?("#{CWD}/dst/#{libdir}/libmsgpackc.a")
Logging.message "Building msgpack\n"
msgpack = File.basename('msgpack-0.5.7.tar.gz')
......@@ -49,7 +51,7 @@ unless File.exists?("#{CWD}/dst/lib/libmsgpackc.a")
end
end
FileUtils.cp "#{CWD}/dst/lib/libmsgpackc.a", "#{CWD}/libmsgpackc_ext.a"
FileUtils.cp "#{CWD}/dst/#{libdir}/libmsgpackc.a", "#{CWD}/libmsgpackc_ext.a"
$INCFLAGS[0,0] = "-I#{CWD}/dst/include "
unless have_library('msgpackc_ext') and have_header('msgpack.h')
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment