Commit 7fb87518 authored by Nils Goroll's avatar Nils Goroll

address a specific issue on solaris with gcc -m32 -fstack-protector

To avoid an undefined symbol __stack_chk_fail_local due to compiling
and linking gcc not seeing the same flags, we need to trick libtool
into passing a flag it would otherwise remove.

Please hold your whitespace ocds and exclude the non-standard indent
chosen to avoid excessive line length.
parent f5723376
......@@ -605,6 +605,23 @@ if test "x$enable_developer_warnings" != "xno"; then
OCFLAGS="${OCFLAGS} ${DEVELOPER_CFLAGS}"
fi
# gcc on solaris needs -fstack-protector when calling gcc in linker
# mode but libtool does not pass it on, so we need to trick it
# specifically
case $CFLAGS in
*-fstack-protector*)
case $target in
*-*-solaris*)
case $CC in
gcc*)
AM_LT_LDFLAGS="${AM_LT_LDFLAGS} -Wc,-fstack-protector"
;;
esac
;;
esac
;;
esac
# --enable-debugging-symbols
AC_ARG_ENABLE(debugging-symbols,
AS_HELP_STRING([--enable-debugging-symbols],[enable debugging symbols (default is NO)]),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment