You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by hi...@apache.org on 2008/08/26 16:13:30 UTC

svn commit: r689090 - /harmony/enhanced/classlib/trunk/modules/archive/src/main/native/zlib/unix/makefile

Author: hindessm
Date: Tue Aug 26 07:13:29 2008
New Revision: 689090

URL: http://svn.apache.org/viewvc?rev=689090&view=rev
Log:
Optimize zlib builds.  See:

  http://markmail.org/message/dpnz2mcgp22k6yjr
  http://markmail.org/message/ovq63btophwzj5ke

Modified:
    harmony/enhanced/classlib/trunk/modules/archive/src/main/native/zlib/unix/makefile

Modified: harmony/enhanced/classlib/trunk/modules/archive/src/main/native/zlib/unix/makefile
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/archive/src/main/native/zlib/unix/makefile?rev=689090&r1=689089&r2=689090&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/archive/src/main/native/zlib/unix/makefile (original)
+++ harmony/enhanced/classlib/trunk/modules/archive/src/main/native/zlib/unix/makefile Tue Aug 26 07:13:29 2008
@@ -17,6 +17,16 @@
 # Makefile for module 'zlib'
 #
 
+# We don't need to debug into zlib
+HY_CFG=release
+
+HYRELEASECFLAGS = -O3
+
+# Further performance improvement on x86 and x86_64
+ifneq (,$(findstring x86,$(HY_ARCH)))
+HYRELEASECFLAGS += -DUNALIGNED_OK
+endif
+
 include $(HY_HDK)/build/make/defines.mk
 
 ZLIB_DIST=../../zlib_dist/# Path to zlib