Files
wasm-simulator/list-linuxcnc-native-linkflags.sh

17 lines
619 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
cd "$(dirname "$0")"
# LinuxCNC source basis: native source-link probes link against the built
# LinuxCNC lib directory required by src/emc/rs274ngc/Submakefile, including
# librs274 dependencies on linuxcncini, pyplugin, linuxcnchal, and tooldata.
linuxcnc_root=${LINUXCNC_ROOT:-../linuxcnc}
preflight_cache_dir=${CNC_SIM_PREFLIGHT_CACHE_DIR:-build/linuxcnc-helper-preflight-cache}
LINUXCNC_ROOT="$linuxcnc_root" ./check-linuxcnc-inputs-cached.sh --cache-dir "$preflight_cache_dir" --root-only
printf '%s\n' \
-L "$linuxcnc_root/lib" \
-Wl,-rpath,"$linuxcnc_root/lib"