1
1
forked from 0ad/0ad

Restrict rpath usage to Linux

This was SVN commit r7386.
This commit is contained in:
Ykkrosh 2010-03-21 18:40:22 +00:00
parent 58e79bfdbe
commit 5118d6ab32

View File

@ -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