br_find_exe_dir() from binreloc.c is Linux centric. So, on BSDs, the /opt/Pawn directory is used, regardless of the --install-prefix option of cmake. For example:
git clone https://codeberg.org/compuphase/pawn.git && cd pawn
mkdir build && cd build
cmake --install-prefix /usr/local/pawn ..
make
This patch fixes this.
`br_find_exe_dir()` from `binreloc.c` is Linux centric. So, on BSDs, the `/opt/Pawn` directory is used, regardless of the `--install-prefix` option of cmake. For example:
```
git clone https://codeberg.org/compuphase/pawn.git && cd pawn
mkdir build && cd build
cmake --install-prefix /usr/local/pawn ..
make
```
This patch fixes this.