r2651 - in jhalfs/branches/experimental/optimize: . opt_config.d

manuel at linuxfromscratch.org manuel at linuxfromscratch.org
Sat May 6 07:17:17 PDT 2006


Author: manuel
Date: 2006-05-06 08:17:16 -0600 (Sat, 06 May 2006)
New Revision: 2651

Added:
   jhalfs/branches/experimental/optimize/opt_config.d/Zlib
Removed:
   jhalfs/branches/experimental/optimize/opt_config.d/defOpt_fPIC
Modified:
   jhalfs/branches/experimental/optimize/opt_override
Log:
Fixed Zlib optimizations to be based on DEF_OPT_LVL.

Added: jhalfs/branches/experimental/optimize/opt_config.d/Zlib
===================================================================
--- jhalfs/branches/experimental/optimize/opt_config.d/Zlib	                        (rev 0)
+++ jhalfs/branches/experimental/optimize/opt_config.d/Zlib	2006-05-06 14:17:16 UTC (rev 2651)
@@ -0,0 +1,56 @@
+#
+#$Id$
+#
+#####
+#
+# MODE Zlib configuration
+#
+# Usage: - Apply optimization string to each variable
+#        - "unset" will cause the variable to be not set
+#          instead of just set to null.
+#
+#####
+
+# Inherit optimizations from DEF_OPT_LVL
+source optimize/opt_config.d/$DEF_OPT_LVL
+
+eval CFLAGS_Zlib_base=\$CFLAGS_${DEF_OPT_LVL}
+eval CXXFLAGS_Zlib_base=\$CXXFLAGS_${DEF_OPT_LVL}
+eval LDFLAGS_Zlib_base=\$LDFLAGS_${DEF_OPT_LVL}
+
+eval OTHER_CFLAGS_Zlib_base=\$CFLAGS_${DEF_OPT_LVL}
+eval OTHER_CXXFLAGS_Zlib_base=\$OTHER_CXXFLAGS_${DEF_OPT_LVL}
+eval OTHER_LDFLAGS_Zlib_base=\$OTHER_LDFLAGS_${DEF_OPT_LVL}
+
+# Set the actual values for Zlib mode
+if [[ "$CFLAGS_Zlib_base" != "unset" ]]; then
+  CFLAGS_Zlib=$CFLAGS_Zlib_base" -fPIC"
+else
+  CFLAGS_Zlib="unset"
+fi
+if [[ "$CXXFLAGS_Zlib_base" != "unset" ]]; then
+  CXXFLAGS_Zlib=$CXXFLAGS_Zlib_base" -fPIC"
+else
+  CXXFLAGS_Zlib="unset"
+fi
+if [[ "$LDFLAGS_Zlib_base" != "unset" ]]; then
+  LDFLAGS_Zlib=$LDFLAGS_Zlib_base
+else
+  LDFLAGS_Zlib="unset"
+fi
+
+if [[ "$OTHER_CFLAGS_Zlib_base" != "unset" ]]; then
+  OTHER_CFLAGS_Zlib=$OTHER_CFLAGS_Zlib_base" -fPIC"
+else
+  OTHER_CFLAGS_Zlib="unset"
+fi
+if [[ "$OTHER_CXXFLAGS_Zlib_base" != "unset" ]]; then
+  OTHER_CXXFLAGS_Zlib=$OTHER_CXXFLAGS_Zlib_base" -fPIC"
+else
+  OTHER_CXXFLAGS_Zlib="unset"
+fi
+if [[ "$OTHER_LDFLAGS_Zlib_base" != "unset" ]]; then
+  OTHER_LDFLAGS_Zlib=$OTHER_LDFLAGS_Zlib_base
+else
+  OTHER_LDFLAGS_Zlib="unset"
+fi


Property changes on: jhalfs/branches/experimental/optimize/opt_config.d/Zlib
___________________________________________________________________
Name: svn:keywords
   + Author Date Revision Id

Deleted: jhalfs/branches/experimental/optimize/opt_config.d/defOpt_fPIC
===================================================================
--- jhalfs/branches/experimental/optimize/opt_config.d/defOpt_fPIC	2006-05-06 11:06:07 UTC (rev 2650)
+++ jhalfs/branches/experimental/optimize/opt_config.d/defOpt_fPIC	2006-05-06 14:17:16 UTC (rev 2651)
@@ -1,23 +0,0 @@
-#
-#$Id$
-#
-#####
-#
-# MODE defOpt_fPIC configuration
-#
-# Usage: - Apply optimization string to each variable
-#        - "unset" will cause the variable to be not set
-#          instead of just set to null.
-#
-#####
-
-# Inherit optimizations from defOpt
-source optimize/opt_config.d/defOpt
-
-CFLAGS_defOpt_fPIC=$CFLAGS_defOpt" -fPIC"
-CXXFLAGS_defOpt_fPIC=$CFLAGS_defOpt" -fPIC"
-LDFLAGS_defOpt_fPIC=$LDFLAGS_defOpt
-
-OTHER_CFLAGS_defOpt_fPIC=$CFLAGS_defOpt" -fPIC"
-OTHER_CXXFLAGS_defOpt_fPIC=$CXXFLAGS_defOpt" -fPIC"
-OTHER_LDFLAGS_defOpt_fPIC=$LDFLAGS_defOpt

Modified: jhalfs/branches/experimental/optimize/opt_override
===================================================================
--- jhalfs/branches/experimental/optimize/opt_override	2006-05-06 11:06:07 UTC (rev 2650)
+++ jhalfs/branches/experimental/optimize/opt_override	2006-05-06 14:17:16 UTC (rev 2651)
@@ -2,4 +2,4 @@
 gcc            noOpt
 glibc          noOpt
 grub           noOpt
-zlib           defOpt_fPIC
+zlib           Zlib




More information about the alfs-log mailing list