3
9
Fork
You've already forked pawn
4

Installation search path on FreeBSD, NetBSD and OpenBSD #4

Merged
compuphase merged 2 commits from lhondareyte/pawn:lhondareyte-fix-binreloc-bsd into main 2026年02月23日 11:37:10 +01:00
Contributor
Copy link

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.
compuphase left a comment
Copy link

Looking good. Thanks.

Looking good. Thanks.
lhondareyte deleted branch lhondareyte-fix-binreloc-bsd 2026年02月23日 13:51:10 +01:00
Sign in to join this conversation.
No reviewers
Labels
Clear labels
No items
No labels
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
compuphase/pawn!4
Reference in a new issue
compuphase/pawn
No description provided.
Delete branch "lhondareyte/pawn:lhondareyte-fix-binreloc-bsd"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?