From d6c0c9de4ab929a001f3b813ae75cf2461de92e5 Mon Sep 17 00:00:00 2001 From: Yossi Gottlieb Date: Thu, 4 Feb 2021 11:37:28 +0200 Subject: [PATCH] Fix 32-bit test modules build. (#8448) --- tests/modules/Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/modules/Makefile b/tests/modules/Makefile index e1629a8ac..73a9be3bc 100644 --- a/tests/modules/Makefile +++ b/tests/modules/Makefile @@ -10,6 +10,12 @@ else # Linux, others SHOBJ_LDFLAGS ?= -shared endif +# Needed to satisfy __stack_chk_fail_local on Linux with -m32, due to gcc +# -fstack-protector by default. Breaks on FreeBSD so we exclude it. +ifneq ($(uname_S),FreeBSD) + LIBS = -lc +endif + TEST_MODULES = \ commandfilter.so \ testrdb.so \