Revision: 6582
http://ipcop.svn.sourceforge.net/ipcop/?rev=6582&view=rev
Author: gespinasse
Date: 2012-04-26 22:09:58 +0000 (Thu, 26 Apr 2012)
Log Message:
-----------
Add -fno-strict-aliasing to compile inside gobject.
That silent the strict aliasing warnings.
Change the hack to pass glib tests.
Don't know how ( maybe a race using a sed on Makefile?) but the sed change
doesn't look to work anymore for me.
Work better using a sed on Makefile.in before configure. This hack has been
tested to work unchanged for 2.32.0 too.
Modified Paths:
--------------
ipcop/trunk/lfs/glib
Modified: ipcop/trunk/lfs/glib
===================================================================
--- ipcop/trunk/lfs/glib 2012-04-26 17:51:04 UTC (rev 6581)
+++ ipcop/trunk/lfs/glib 2012-04-26 22:09:58 UTC (rev 6582)
@@ -85,6 +85,10 @@
@$(PREBUILD)
@rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar xf $(DIR_DL)/$(DL_FILE)
+ # Skip dbus tests, remove gmenumodel and comment every am__append_ that
add to TEST_PROGS
+ # gio tests are not important for us as that lib is not distributed
+ cd $(DIR_APP) && sed -i -e 's/am__append_. /#&/g' -e 's/gmenumodel
resources/resources/' gio/tests/Makefile.in
+
# Don't care about zlib flags. zlib matter on gio lib only that is not
include in iso.
# --with-threads=none break pango-1.28.4
cd $(DIR_APP) && \
@@ -98,9 +102,10 @@
--sysconfdir=/etc \
--with-pcre=system \
--disable-dtrace
- # Skip dbus tests, commenting every am__append_ that add to TEST_PROGS
- cd $(DIR_APP) && sed -i -e 's/^am__append_./#&/g' gio/tests/Makefile
-
+
+ # Hack to fix strict aliasing warning present on gobject only, instead
of adding for the entire package.
+ cd $(DIR_APP) && sed -i -e 's/^CFLAGS .*/& -fno-strict-aliasing/'
gobject/Makefile
+
cd $(DIR_APP) && make -j $(PARALLELISM)
# Test suite is not reliable before install
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Ipcop-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ipcop-svn