List:Commits« Previous MessageNext Message »
From:Daniel Fischer Date:October 21 2008 8:10pm
Subject:bzr commit into mysql-5.0 branch (df:2663)
View as plain text  
#At file:///shared/home/df/mysql/bazaar/mysql-5.0-preconfigure/

 2663 Daniel Fischer	2008-10-21
      fix
modified:
  BUILD/preconfigure

=== modified file 'BUILD/preconfigure'
--- a/BUILD/preconfigure	2008-10-21 15:13:36 +0000
+++ b/BUILD/preconfigure	2008-10-21 18:10:05 +0000
@@ -77,7 +77,7 @@
 # -----------
 #
 # For environment variables:
-# - the value is split at blanks
+# - the value is split at blanks, all ^ in the parts are replaced with blanks
 # - if the variable name is prefixed with a +, the value of that variable in
 #   the current configuration is replaced with the set union of it and the
 #   blank-delimited parts specified in the new value
@@ -782,9 +782,9 @@ our $platforms = {
 #
     'osx10.5-x86_64' => {
         'env' => {
-            'CFLAGS' => '-g -Os -arch x86_64 -fno-common',
+            'CFLAGS' => '-g -Os -arch^x86_64 -fno-common',
             'CC' => 'gcc -static-libgcc',
-            'CXXFLAGS' => '-g -Os -arch x86_64 -felide-constructors -fno-common',
+            'CXXFLAGS' => '-g -Os -arch^x86_64 -felide-constructors -fno-common',
             'CXX' => 'gcc -static-libgcc',
         },
         'opt' => {
@@ -796,10 +796,10 @@ our $platforms = {
 #
     'osx10.5-powerpc-32bit' => {
         'env' => {
-            'CFLAGS' => '-g -Os -arch ppc -fno-common',
+            'CFLAGS' => '-g -Os -arch^ppc -fno-common',
             'CC' => 'gcc -static-libgcc',
-            'LDFLAGS' => '-arch ppc',
-            'CXXFLAGS' => '-g -Os -arch ppc -felide-constructors -fno-common',
+            'LDFLAGS' => '-arch^ppc',
+            'CXXFLAGS' => '-g -Os -arch^ppc -felide-constructors -fno-common',
             'CXX' => 'gcc -static-libgcc',
         },
         'opt' => {
@@ -811,10 +811,10 @@ our $platforms = {
 #
     'osx10.5-powerpc-64bit' => {
         'env' => {
-            'CFLAGS' => '-g -Os -arch ppc64 -fno-common',
+            'CFLAGS' => '-g -Os -arch^ppc64 -fno-common',
             'CC' => 'gcc -static-libgcc',
-            'LDFLAGS' => '-arch ppc64',
-            'CXXFLAGS' => '-g -Os -arch ppc64 -felide-constructors -fno-common',
+            'LDFLAGS' => '-arch^ppc64',
+            'CXXFLAGS' => '-g -Os -arch^ppc64 -felide-constructors -fno-common',
             'CXX' => 'gcc -static-libgcc',
         },
         'opt' => {
@@ -826,9 +826,9 @@ our $platforms = {
 #
     'osx10.5-x86' => {
         'env' => {
-            'CFLAGS' => '-g -Os -arch i386 -fno-common',
+            'CFLAGS' => '-g -Os -arch^i386 -fno-common',
             'CC' => 'gcc -static-libgcc',
-            'CXXFLAGS' => '-g -Os -arch i386 -felide-constructors -fno-common',
+            'CXXFLAGS' => '-g -Os -arch^i386 -felide-constructors -fno-common',
             'CXX' => 'gcc -static-libgcc',
         },
         'opt' => {
@@ -840,10 +840,10 @@ our $platforms = {
 #
     'osx10.4-powerpc-64bit' => {
         'env' => {
-            'CFLAGS' => '-g -Os -arch ppc64 -fno-common',
+            'CFLAGS' => '-g -Os -arch^ppc64 -fno-common',
             'CC' => 'gcc -static-libgcc',
-            'LDFLAGS' => '-arch ppc64',
-            'CXXFLAGS' => '-g -Os -arch ppc64 -felide-constructors -fno-common',
+            'LDFLAGS' => '-arch^ppc64',
+            'CXXFLAGS' => '-g -Os -arch^ppc64 -felide-constructors -fno-common',
             'CXX' => 'gcc -static-libgcc',
         },
         'opt' => {
@@ -855,9 +855,9 @@ our $platforms = {
 #
     'osx10.4-x86' => {
         'env' => {
-            'CFLAGS' => '-g -Os -arch i386 -fno-common',
+            'CFLAGS' => '-g -Os -arch^i386 -fno-common',
             'CC' => 'gcc -static-libgcc',
-            'CXXFLAGS' => '-g -Os -arch i386 -felide-constructors -fno-common',
+            'CXXFLAGS' => '-g -Os -arch^i386 -felide-constructors -fno-common',
             'CXX' => 'gcc -static-libgcc',
         },
         'opt' => {
@@ -869,9 +869,9 @@ our $platforms = {
 #
     'osx10.4-powerpc-32bit' => {
         'env' => {
-            'CFLAGS' => '-g -Os -arch ppc -fno-common',
+            'CFLAGS' => '-g -Os -arch^ppc -fno-common',
             'CC' => 'gcc -static-libgcc',
-            'CXXFLAGS' => '-g -Os -arch ppc -felide-constructors -fno-common',
+            'CXXFLAGS' => '-g -Os -arch^ppc -felide-constructors -fno-common',
             'CXX' => 'gcc -static-libgcc',
         },
         'opt' => {
@@ -1060,7 +1060,7 @@ sub aggregate {
             $parts = $p;
         } else {
             # otherwise, split on blank to create a list of values
-            $parts = [ split / +/, $p ];
+            $parts = [ map { y/^/ /; $_ } split / +/, $p ];
         }
         # determine the mode by which to apply this individual change
         # the default is replacing any existing variable with the new content

Thread
bzr commit into mysql-5.0 branch (df:2663) Daniel Fischer21 Oct