kfl/mosml — pull request #15 by Munksgaard (2013-08-20 10:04:46+00:00)
Title: Add -fno-stack-protector to DYNLIBCFLAGS

Should fix #14.

This fixes the "undefined reference to __stack_chk_fail_local'" when building
dynlibs (specifically when compiling msocket) on x86.

If -fPIC is specified (which is needed to compile shared libraries, such
as the dynlibs on x64) it seems like the -fno-stack-protector flag is
necessary for the dynlibs to compile on x86.

More info:
https://github.com/dailab/libsml/issues/3#ref-commit-b9229cb
http://ubuntuforums.org/showthread.php?t=352642
http://stackoverflow.com/questions/10712972/what-is-the-use-of-fno-stack-protector