Skip to content

Instantly share code, notes, and snippets.

@Mr-Precise
Created February 5, 2023 12:23
Show Gist options
  • Save Mr-Precise/d703f7f3d966358a9041077b3aba7acf to your computer and use it in GitHub Desktop.
Save Mr-Precise/d703f7f3d966358a9041077b3aba7acf to your computer and use it in GitHub Desktop.
Use this script for execute portable compiled program

Script for execute portable compiled program (Loading libraries from current directory)

#!/bin/sh

cd "`dirname "$0"`"
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$(pwd)
./program_name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment