Skip to content

Commit

Permalink
Don’t populate LIBPATH
Browse files Browse the repository at this point in the history
Given we only want to use absolute, static paths for libraries, remove another potential way for vendored libraries to be linked dynamically by excluding their lib directories from the LIBPATH.
  • Loading branch information
mudge committed Apr 2, 2024
1 parent 3511a9c commit 1434ae7
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions ext/re2/extconf.rb
Original file line number Diff line number Diff line change
Expand Up @@ -226,8 +226,6 @@ def static_pkg_config(pc_file, pkg_config_paths)
.shellsplit
.map { |flag| flag.delete_prefix('-L') }

$LIBPATH = static_library_paths | $LIBPATH

# Replace all -l flags that can be found in one of the static library
# paths with the absolute path instead.
minimal_pkg_config(pc_file, '--libs-only-l', '--static')
Expand Down

0 comments on commit 1434ae7

Please sign in to comment.