Skip to content

Commit

Permalink
Debug pkg-config version
Browse files Browse the repository at this point in the history
  • Loading branch information
stanhu committed Nov 29, 2023
1 parent 2cd847e commit 5b6712e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ext/re2/extconf.rb
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,8 @@ def build_with_vendored_libraries
raise 'Unable to run pkg-config --libs --static' unless $?.success?

lib_paths = [File.join(abseil_recipe.path, 'lib'), File.join(re2_recipe.path, 'lib')]
version = xpopen(['pkg-config', '--version'], err: %i[child out], &:read)
STDERR.puts "=== pkg-config version: #{version}"
STDERR.puts "=== flags: #{flags}"
add_static_ldflags(flags, lib_paths)
build_extension(true)
Expand Down

0 comments on commit 5b6712e

Please sign in to comment.