ruki před 2 roky
rodič
revize
4c4c030bc0
1 změnil soubory, kde provedl 8 přidání a 1 odebrání
  1. 8 1
      configure

+ 8 - 1
configure

@@ -4087,8 +4087,15 @@ _gmake_add_build() {
 
 
 _gmake_add_run_target() {
 _gmake_add_run_target() {
     local target=${1}
     local target=${1}
+    _get_targetdir "${target}"; local targetdir="${_ret}"
     _get_target_file "${target}"; local targetfile="${_ret}"
     _get_target_file "${target}"; local targetfile="${_ret}"
-    print "\t@${targetfile}" >> "${xmake_sh_makefile}"
+    if is_plat "macosx"; then
+        print "\t@DYLD_LIBRARY_PATH=${targetdir} ${targetfile}" >> "${xmake_sh_makefile}"
+    elif is_plat "linux" "bsd"; then
+        print "\t@LD_LIBRARY_PATH=${targetdir} ${targetfile}" >> "${xmake_sh_makefile}"
+    else
+        print "\t@${targetfile}" >> "${xmake_sh_makefile}"
+    fi
 }
 }
 
 
 _gmake_add_run_targets() {
 _gmake_add_run_targets() {