INN commit: trunk (configure.ac)
INN Commit
rra at isc.org
Mon Jan 4 21:12:44 UTC 2021
Date: Monday, January 4, 2021 @ 13:12:44
Author: iulius
Revision: 10489
Add -fstack-protector-strong to the linker if it has it
Building innd on Solaris fails if the compiler has amongts its
flags -fstack-protector-strong but the linker not.
Undefined first referenced
symbol in file
__stack_chk_fail art.o
__stack_chk_guard art.o
ld: fatal: symbol referencing errors
Modified:
trunk/configure.ac
--------------+
configure.ac | 2 ++
1 file changed, 2 insertions(+)
Modified: configure.ac
===================================================================
--- configure.ac 2021-01-04 21:09:47 UTC (rev 10488)
+++ configure.ac 2021-01-04 21:12:44 UTC (rev 10489)
@@ -705,6 +705,8 @@
[CFLAGS="${CFLAGS} -fstack-protector-strong"
CC_WARNINGS="${CC_WARNINGS} -fstack-protector-strong"],
[])
+ INN_PROG_LD_FLAG([-fstack-protector-strong],
+ [LDFLAGS="${LDFLAGS} -fstack-protector-strong"], [])
INN_PROG_LD_FLAG([-Wl,-z,relro],
[LDFLAGS="${LDFLAGS} -Wl,-z,relro"], [])
INN_PROG_LD_FLAG([-Wl,-z,now],
More information about the inn-committers
mailing list