From 372ebd9d805fcc0e442b07ac87daefd592fcc3f0 Mon Sep 17 00:00:00 2001 From: Keni Date: Mon, 17 Feb 2025 11:50:55 -0500 Subject: [PATCH] NOSTATICFN/NONOSTATICFN typos and logic fixes --- include/config.h | 4 +++- sys/unix/hints/linux.370 | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/include/config.h b/include/config.h index 11652a7c6..a7097b363 100644 --- a/include/config.h +++ b/include/config.h @@ -273,7 +273,9 @@ # endif # ifdef __linux__ # define PANICTRACE -# define NOSTATICFN +# ifndef NOSTATICFN // may be defined on command line +# define NOSTATICFN +# endif # endif // This test isn't quite right: CNG is only available from Windows 2000 on. // But we'll check that at runtime. diff --git a/sys/unix/hints/linux.370 b/sys/unix/hints/linux.370 index 39286e027..e3dec785b 100755 --- a/sys/unix/hints/linux.370 +++ b/sys/unix/hints/linux.370 @@ -360,10 +360,10 @@ POSTINSTALL+= sed -i -e 's;^GDBPATH=/usr/bin/gdb;\#GDBPATH=/usr/bin/gdb;' \ -e 's;PANICTRACE_GDB=1;PANICTRACE_GDB=0;' $(INSTDIR)/sysconf; endif -ifeq 'USENONOSTATICFN' '1' +ifeq '$(USE_NONOSTATICFN)' '1' CFLAGS += -DNONOSTATICFN else -ifeq 'USE_NOSTATICFN' '1' +ifeq '$(USE_NOSTATICFN)' '1' CFLAGS += -DNOSTATICFN endif endif