Revision: 172 http://trac.macosforge.org/projects/libdispatch/changeset/172 Author: robert@fledge.watson.org Date: 2009-12-15 00:44:31 -0800 (Tue, 15 Dec 2009) Log Message: ----------- When testing -lBlocksRuntime requirement, build blocks excerpt with -O0. As the clang optimizer improves, it becomes better at optimizing out dead code, such as our sample blocks use, which prevents the linkage dependency from working properly. Submitted by: Stanislav Sedov <stas@FreeBSD.org> Modified Paths: -------------- trunk/m4/blocks.m4 Modified: trunk/m4/blocks.m4 =================================================================== --- trunk/m4/blocks.m4 2009-11-17 18:45:57 UTC (rev 171) +++ trunk/m4/blocks.m4 2009-12-15 08:44:31 UTC (rev 172) @@ -36,7 +36,7 @@ # should force that linkage already. # saveCFLAGS="$CFLAGS" - CFLAGS="$CFLAGS -fblocks" + CFLAGS="$CFLAGS -fblocks -O0" AC_MSG_CHECKING([whether additional libraries are required for the Blocks runtime]) AC_TRY_LINK([], [ ^{ int j; j=0; }(); @@ -83,7 +83,7 @@ CXXBLOCKS_FLAGS="$dispatch_cv_cxxblocks" saveCXXFLAGS="$CXXFLAGS" - CXXFLAGS="$CXXFLAGS -fblocks" + CXXFLAGS="$CXXFLAGS -fblocks -O0" AC_MSG_CHECKING([whether additional libraries are required for the Blocks runtime]) AC_TRY_LINK([], [ ^{ int j; j=0; }();
participants (1)
-
source_changes@macosforge.org