Skip to content

Fix building on *BSD - #8

Closed
Renkoto wants to merge 5 commits into
Velaron:androidfrom
Renkoto:freebsd-fixes
Closed

Renkoto wants to merge 5 commits into
Velaron:androidfrom
Renkoto:freebsd-fixes

Conversation

@Renkoto

@Renkoto Renkoto commented Oct 16, 2026 •

Copy link
Copy Markdown

This is part of a serie of PRs to fix the cs16-client build on *BSD (Tested on FreeBSD 15.1 RELEASE AMD64) it uses the android branch as a base.

  • appversion.sh: use #!/usr/bin/env bash (there is no /bin/bash on the BSDs, third-party applications/ports store its files in the /usr/ and other directories)
  • osconfig.h: include <sys/sysinfo.h> on Linux only
  • platform.h: accept the BSDs in the DLL export macros
  • counter.h: use <limits.h> on non-Linux systems
  • CMake: pass -Wl,--undefined-version to lld on BSD. The version script lists libstdc++-only symbols (e.g. __dynamic_cast) that are not defined in the output, which lld rejects as an error

The code paths of the other platforms should be unchanged.

@Renkoto
Renkoto marked this pull request as ready for review October 21, 2026 20:20
@Vladislav4KZ

Vladislav4KZ commented Oct 24, 2026 •

Copy link
Copy Markdown

I think this should be submitted to the upstream rehlds/ReGameDLL_CS repository

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants