harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From apetre...@apache.org
Subject svn commit: r487530 - /harmony/enhanced/classlib/trunk/depends/build/defines.mk
Date Fri, 15 Dec 2006 12:37:54 GMT
Author: apetrenko
Date: Fri Dec 15 04:37:53 2006
New Revision: 487530

URL: http://svn.apache.org/viewvc?view=rev&rev=487530
Log:
This patch adds possibility to change release and debug compiler options on Linux by setting
environment variable

Modified:
    harmony/enhanced/classlib/trunk/depends/build/defines.mk

Modified: harmony/enhanced/classlib/trunk/depends/build/defines.mk
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/depends/build/defines.mk?view=diff&rev=487530&r1=487529&r2=487530
==============================================================================
--- harmony/enhanced/classlib/trunk/depends/build/defines.mk (original)
+++ harmony/enhanced/classlib/trunk/depends/build/defines.mk Fri Dec 15 04:37:53 2006
@@ -39,8 +39,16 @@
 DEFINES += -D_REENTRANT -DIPv6_FUNCTION_SUPPORT
 INCLUDES += -I$(HY_HDK)/include -I$(HY_HDK)/jdk/include -I. -I$(SHAREDSUB)
 
+ifndef HYDEBUGCFLAGS
+HYDEBUGCFLAGS = -g
+endif
+
+ifndef HYRELEASECFLAGS  
+HYRELEASECFLAGS = -O1
+endif
+
 ifeq ($(HY_CFG),release)
-OPT += -O1
+OPT += $(HYRELEASECFLAGS)
 else
-OPT += -g
+OPT += $(HYDEBUGCFLAGS)
 endif



Mime
View raw message