From 2d092158bca5f3561bd373784e263989971ab71d Mon Sep 17 00:00:00 2001 From: Jelte Fennema Date: Wed, 3 Mar 2021 10:26:39 +0100 Subject: [PATCH] Remove -shared from security flags It breaks OSX compiles and is already added by postgres on Linux anyway. --- configure.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.in b/configure.in index d23945044..a13c2f69e 100644 --- a/configure.in +++ b/configure.in @@ -274,7 +274,7 @@ if test "$with_security_flags" = yes; then # Flags taken from: https://liquid.microsoft.com/Web/Object/Read/ms.security/Requirements/Microsoft.Security.SystemsADM.10203#guide # We always want to have some compiler flags for security concerns. -SECURITY_CFLAGS="-fstack-protector-strong -D_FORTIFY_SOURCE=2 -O2 -z noexecstack -fpic -shared -Wl,-z,relro -Wl,-z,now -Wformat -Wformat-security -Werror=format-security" +SECURITY_CFLAGS="-fstack-protector-strong -D_FORTIFY_SOURCE=2 -O2 -z noexecstack -fpic -Wl,-z,relro -Wl,-z,now -Wformat -Wformat-security -Werror=format-security" CITUS_CFLAGS="$CITUS_CFLAGS $SECURITY_CFLAGS" AC_MSG_NOTICE([Blindly added security flags for linker: $SECURITY_CFLAGS])