use LD_LIBRARY_PATH rather than -rpath

This commit is contained in:
veclav talica 2024-08-21 21:45:49 +03:00
parent 192b3f150c
commit 859ae8f91e

View File

@ -122,8 +122,7 @@ function(give_options target)
-ffp-contract=fast -ffp-contract=fast
-fno-signed-zeros -fno-signed-zeros
-fno-trapping-math -fno-trapping-math
-freciprocal-math -freciprocal-math)
-Wl,$<$<BOOL:${TOWNENGINE_HOT_RELOAD}>:-rpath ./>)
set(BUILD_FLAGS_RELEASE set(BUILD_FLAGS_RELEASE
-O3 -O3
@ -244,7 +243,7 @@ function(use_townengine target sources output_directory data_dir)
string(JOIN "\n" TOWNENGINE_BOOTSTRAP string(JOIN "\n" TOWNENGINE_BOOTSTRAP
"#!/bin/env sh" "#!/bin/env sh"
"cd \"$(dirname \"$0\")\"" "cd \"$(dirname \"$0\")\""
"./launcher --data-dir ${data_dir}" "LD_LIBRARY_PATH=./ ./launcher --data-dir ${data_dir}"
"") "")
FILE(GENERATE OUTPUT ${output_directory}/${target} FILE(GENERATE OUTPUT ${output_directory}/${target}