From 822aa00bd616995c5736ef67bbb1ac5dd4e5e116 Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Thu, 6 Nov 2025 21:51:09 +0500 Subject: [PATCH] wscript: replace --no-undefined with -undefined error for Darwin for compatibility with older linkers (tested on 10.4) --- wscript | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wscript b/wscript index 77de89b2..2a86b0af 100644 --- a/wscript +++ b/wscript @@ -304,6 +304,9 @@ def configure(conf): # check if we're in a sgug environment if 'sgug' in os.environ['LD_LIBRARYN32_PATH']: linkflags.append('-lc') + elif conf.env.DEST_OS == 'darwin': + linkflags.remove('-Wl,--no-undefined') + linkflags.append('-Wl,-undefined,-error') elif conf.env.SAILFISH: conf.define('XASH_SAILFISH', 1)