/usr/src/castle-game-engine-5.2.0/library/castleengine_compile.sh is in castle-game-engine-src 5.2.0-3.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | #!/bin/bash
set -eu
# Call this script from this directory,
# or from base castle_game_engine directory.
# Allow calling this script from it's dir.
if [ -f castleengine.lpr ]; then cd ../../; fi
# We clean first, to
# 1. make sure that CastleWindow unit is compiled with LIBRARY backend.
# 2. make sure that every unit is recompiled with -fPIC (necessary for .so on x86_64)
make --quiet clean
fpc -fPIC -dRELEASE @castle-fpc.cfg -dCASTLE_WINDOW_LIBRARY src/library/castleengine.lpr "$@"
# Avoid other programs to be accidentally compiled
# with CastleWindow with LIBRARY backend, or -fPIC.
make --quiet clean
|