Skip to content

Commit

Permalink
Detect the exiv library using pkg-config
Browse files Browse the repository at this point in the history
This should get rid of most problems with library location detection
without the need for manually supplying the path.
Previous ways of providing the specific path are still available.
  • Loading branch information
viraptor committed Feb 1, 2022
1 parent 9e02450 commit e9c1bb6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ext/exiv2/extconf.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
RbConfig::MAKEFILE_CONFIG['CXX'] = ENV['CXX'] if ENV['CXX']
RbConfig::MAKEFILE_CONFIG['CXXFLAGS'] = ENV['CXXFLAGS'] if ENV['CXXFLAGS']

dir_config("exiv2")
if dir_config("exiv2") == [nil, nil]
pkg_config("exiv2")
end
have_library("exiv2")
create_makefile("exiv2/exiv2")

0 comments on commit e9c1bb6

Please sign in to comment.