Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
KMSCAKKSCFKA AKFACAMADCAS
brew
Commits
d89eda09
Unverified
Commit
d89eda09
authored
Apr 20, 2021
by
Carlo Cabrera
Committed by
GitHub
Apr 20, 2021
Browse files
Merge pull request #11187 from carlocab/cmake-rpath
formula: add rpath helper method
parents
844f15ed
309504a3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Library/Homebrew/extend/os/linux/formula.rb
View file @
d89eda09
...
...
@@ -3,6 +3,7 @@
class
Formula
undef
shared_library
undef
rpath
def
shared_library
(
name
,
version
=
nil
)
suffix
=
if
version
==
"*"
||
(
name
==
"*"
&&
version
.
blank?
)
...
...
@@ -13,6 +14,10 @@ class Formula
"
#{
name
}
.so
#{
suffix
}
"
end
def
rpath
"'$ORIGIN/../lib'"
end
class
<<
self
undef
ignore_missing_libraries
...
...
Library/Homebrew/formula.rb
View file @
d89eda09
...
...
@@ -1523,6 +1523,12 @@ class Formula
"
#{
name
}#{
infix
}
.dylib"
end
# Executable/Library RPATH according to platform conventions.
sig
{
returns
(
String
)
}
def
rpath
"@loader_path/../lib"
end
# an array of all core {Formula} names
# @private
def
self
.
core_names
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment