Sha256: 2fb502e5969c2b65e408f062a090696734561f473cc4ab26fee3b484154e4179
Contents?: true
Size: 583 Bytes
Versions: 3
Compression:
Stored size: 583 Bytes
Contents
require 'mkmf' unless (libarchive_cfg = pkg_config('libarchive')) abort 'Failed to locate pkg-config file for libarchive.' end unless have_library('archive') abort 'Failed to test-link against libarchive.' end non_std_location = libarchive_cfg.detect { |flag| flag =~ /^-L/ } if non_std_location non_std_location.gsub!('-L', '') $LDFLAGS << " -Wl,-rpath,#{non_std_location}" message "embedding path to library into rblibarchive.so: #{non_std_location}\n" end with_cppflags("#{(libarchive_cfg.detect { |flag| flag =~ /^-I/ })}") do create_makefile('rblibarchive') end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
libarchive-ruby-fs-0.2.4 | ext/rblibarchive/extconf.rb |
libarchive-ruby-fs-0.2.3 | ext/rblibarchive/extconf.rb |
libarchive-ruby-fs-0.2.2 | ext/rblibarchive/extconf.rb |