DSCF

.co.uk

PC32

A ColorForth compiler and editor for x86-64
git clone https://dscf.co.uk/clone/PC32.git
Back | Log | Files | Refs | Issues

run.sh (427B)


      1 #!/bin/sh
      2 # Launch the 32-bit binary with its own bundled loader and libraries (lib32/),
      3 # so no system 32-bit libs are needed.  Needs a kernel with 32-bit exec support.
      4 here=$(cd "$(dirname "$0")" && pwd)
      5 export LIBGL_DRIVERS_PATH="$here/lib32/dri"
      6 export LIBGL_ALWAYS_SOFTWARE=1      # only the bundled 32-bit software driver exists
      7 cd "$here"
      8 exec "$here/lib32/ld-linux.so.2" --library-path "$here/lib32" "$here/a.out" "$@"