diff --git a/CHANGELOG.md b/CHANGELOG.md index 1659f1fe4..ffe15c700 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Half-Life Updated changelog +## Changes in V1.1.1 + +> Note: this update has not been released yet. + +### Bug fixes + +* Link Linux binaries with `-Wl` and `--no-undefined` flags to avoid situations where something was referenced but wasn't added in the build (Thanks a1batross) + ## Changes in V1.1.0 ### Bug Fixes diff --git a/FULL_UPDATED_CHANGELOG.md b/FULL_UPDATED_CHANGELOG.md index 808c0cd94..2d6f8d475 100644 --- a/FULL_UPDATED_CHANGELOG.md +++ b/FULL_UPDATED_CHANGELOG.md @@ -437,6 +437,7 @@ Fixes for bugs introduced in beta builds are not included in this list. * Disabled GCC optimization that prevents mod dlls from unloading after engine calls dlclose * Fixed third party libraries possibly not being linked to when building Linux server dll (Thanks a1batross) * Mods made with this SDK will now shut down if they detect they are being run from a Valve game directory (e.g. by placing the dlls in `Half-Life/valve/cl_dlls` and `Half-Life/valve/dlls`). This is not supported and puts users at risk of being VAC banned. Run mods from their intended location only +* Link Linux binaries with `-Wl` and `--no-undefined` flags to avoid situations where something was referenced but wasn't added in the build (Thanks a1batross) ## Git repository changes diff --git a/linux/Makefile b/linux/Makefile index df65701c3..fefa963dc 100644 --- a/linux/Makefile +++ b/linux/Makefile @@ -54,9 +54,9 @@ endif SHLIBEXT=so SHLIBCFLAGS= ifeq "$(CFG)" "release" - SHLIBLDFLAGS="-shared -Wl,-Map,$@_map.txt" + SHLIBLDFLAGS="-shared -Wl,-Map,$@_map.txt -Wl,--no-undefined" else - SHLIBLDFLAGS="-shared -gdwarf-2 -g2 -Wl,-Map,$@_map.txt" + SHLIBLDFLAGS="-shared -gdwarf-2 -g2 -Wl,-Map,$@_map.txt -Wl,--no-undefined" endif AR=ar