download_and_compile.sh: use the set_ld_library_path variable
This improves readability a little bit. set_ld_library_path was defined
but unused since commit a5e4c47f
. Note that this variable must be set
*after* the OpenBSD-specific code block because its definition relies on
the value of 'paths', which is modified in said block.
This commit is contained in:
parent
3bce994ea8
commit
0972e57a5b
@ -1383,7 +1383,6 @@ if _elementIn "FGFS" "${WHATTOBUILD[@]}" || \
|
|||||||
|
|
||||||
paths="../../$SIMGEAR_INSTALL_DIR/lib:../../$OSG_INSTALL_DIR/lib:../../$OPENRTI_INSTALL_DIR/lib:../../$PLIB_INSTALL_DIR/lib"
|
paths="../../$SIMGEAR_INSTALL_DIR/lib:../../$OSG_INSTALL_DIR/lib:../../$OPENRTI_INSTALL_DIR/lib:../../$PLIB_INSTALL_DIR/lib"
|
||||||
gdb="gdb"
|
gdb="gdb"
|
||||||
set_ld_library_path="export LD_LIBRARY_PATH='$paths'\"\${LD_LIBRARY_PATH:+:}\${LD_LIBRARY_PATH}\""
|
|
||||||
|
|
||||||
common=""
|
common=""
|
||||||
common="${common}#!/bin/sh\n"
|
common="${common}#!/bin/sh\n"
|
||||||
@ -1398,7 +1397,8 @@ if _elementIn "FGFS" "${WHATTOBUILD[@]}" || \
|
|||||||
common="${common}ulimit -d 4194304\n"
|
common="${common}ulimit -d 4194304\n"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
common="${common}export LD_LIBRARY_PATH='$paths'\"\${LD_LIBRARY_PATH:+:}\${LD_LIBRARY_PATH}\"\n"
|
set_ld_library_path="export LD_LIBRARY_PATH='$paths'\"\${LD_LIBRARY_PATH:+:}\${LD_LIBRARY_PATH}\""
|
||||||
|
common="${common}${set_ld_library_path}\n"
|
||||||
|
|
||||||
SCRIPT=run_fgfs.sh
|
SCRIPT=run_fgfs.sh
|
||||||
echo -en "$common" > $SCRIPT
|
echo -en "$common" > $SCRIPT
|
||||||
|
Loading…
Reference in New Issue
Block a user