[libdispatch-changes] [172] trunk/m4/blocks.m4

source_changes at macosforge.org source_changes at macosforge.org
Tue Dec 15 00:44:34 PST 2009


Revision: 172
          http://trac.macosforge.org/projects/libdispatch/changeset/172
Author:   robert at 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 at 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; }();
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/libdispatch-changes/attachments/20091215/b12a857a/attachment.html>


More information about the libdispatch-changes mailing list