Sha256: 65507a877f369fb3f191f1847fac57ce30851475f8b47c046269d587313dc157
Contents?: true
Size: 603 Bytes
Versions: 2
Compression:
Stored size: 603 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
libarchive-ruby-fs-0.2.1 | ext/rblibarchive/extconf.rb |
libarchive-ruby-fs-0.2.0 | ext/rblibarchive/extconf.rb |