Restrict rpath usage to Linux
This was SVN commit r7386.
This commit is contained in:
parent
58e79bfdbe
commit
5118d6ab32
@ -206,10 +206,12 @@ function package_set_build_flags()
|
||||
end
|
||||
end
|
||||
|
||||
-- To use our local SpiderMonkey library, it needs to be part of the runtime dynamic linker
|
||||
-- path. So add the executable path with -rpath:
|
||||
-- (TODO: is this a sane way to do it?)
|
||||
tinsert(package.linkoptions, {"-Wl,-rpath='$$ORIGIN'"}) -- use Makefile escaping of '$'
|
||||
if OS == "linux" then
|
||||
-- To use our local SpiderMonkey library, it needs to be part of the runtime dynamic linker
|
||||
-- path. So add the executable path with -rpath:
|
||||
-- (TODO: is this a sane way to do it?)
|
||||
tinsert(package.linkoptions, {"-Wl,-rpath='$$ORIGIN'"}) -- use Makefile escaping of '$'
|
||||
end
|
||||
|
||||
tinsert(package.buildoptions, {
|
||||
-- Hide symbols in dynamic shared objects by default, for efficiency and for equivalence with
|
||||
|
Loading…
Reference in New Issue
Block a user