]> granicus.if.org Git - icu/commitdiff
ICU-9705 fix runConfigureICU bugs, add Linux/gcc, improve help text
authorMarkus Scherer <markus.icu@gmail.com>
Tue, 6 Nov 2012 19:17:29 +0000 (19:17 +0000)
committerMarkus Scherer <markus.icu@gmail.com>
Tue, 6 Nov 2012 19:17:29 +0000 (19:17 +0000)
X-SVN-Rev: 32760

icu4c/source/runConfigureICU

index fa745cbd211b354aed8c72c9644233e631ab3660..6783b384df652072e1d94bc82ed263de26cdc135 100755 (executable)
@@ -27,6 +27,11 @@ Options: -h, --help         Print this message and exit
          --enable-debug     Enable support for debugging
          --disable-release  Disable presetting optimization flags
 
+If you want to add custom CFLAGS or CXXFLAGS or similar, provide them _before_
+the runConfigureICU command:
+
+    CXXFLAGS=xyz path/to/runConfigureICU --enable-debug ...
+
 The following names can be supplied as the argument for platform:
 
     AIX                 Use the IBM Visual Age xlc_r/xlC_r compilers on AIX
@@ -38,7 +43,8 @@ The following names can be supplied as the argument for platform:
     FreeBSD             Use the GNU gcc/g++ compilers on Free BSD
     HP-UX/ACC           Use the HP ANSI C/Advanced C++ compilers on HP-UX 11
     IBMi                Use the iCC compilers on IBM i, i5/OS, OS/400
-    Linux               Use the GNU gcc/g++ compilers on Linux
+    Linux               Use the clang/clang++ or GNU gcc/g++ compilers on Linux
+    Linux/gcc           Use the GNU gcc/g++ compilers on Linux
     Linux/ECC           Use the Intel ECC compiler on Linux
     Linux/ICC           Use the Intel ICC compiler on Linux
     Linux/VA            Use the IBM Visual Age compiler on Power PC Linux
@@ -142,7 +148,7 @@ case $platform in
         CC=gcc; export CC
         CXX=g++; export CXX
         DEBUG_CFLAGS='-g -O0'
-        DEBUG_CXFLAGS='-g -O0'
+        DEBUG_CXXFLAGS='-g -O0'
         ;;
     Solaris)
         THE_OS=SOLARIS
@@ -224,11 +230,23 @@ case $platform in
         RELEASE_CFLAGS="-O2 -qmaxmem=-1"
         RELEASE_CXXFLAGS="-O2 -qmaxmem=-1"
         ;;
-    Linux*)
+    Linux/gcc)
         THE_OS="Linux"
         THE_COMP="the GNU C++"
-        DEBUG_CFLAGS='-g -O0'
-        DEBUG_CXFLAGS='-g -O0'
+        CC=gcc; export CC
+        CXX=g++; export CXX
+        RELEASE_CFLAGS='-O3'
+        RELEASE_CXXFLAGS='-O3'
+        DEBUG_CFLAGS='-g'
+        DEBUG_CXXFLAGS='-g'
+        ;;
+    Linux*)
+        THE_OS="Linux"
+        THE_COMP="the clang or else GNU C++"
+        RELEASE_CFLAGS='-O3'
+        RELEASE_CXXFLAGS='-O3'
+        DEBUG_CFLAGS='-g'
+        DEBUG_CXXFLAGS='-g'
         ;;
     Cygwin)
         THE_OS="Cygwin"
@@ -290,7 +308,7 @@ case $platform in
         CC=gcc; export CC
         CXX=g++; export CXX
         DEBUG_CFLAGS='-g -O0'
-        DEBUG_CXFLAGS='-g -O0'
+        DEBUG_CXXFLAGS='-g -O0'
         ;;
     TRU64V5.1/CXX)
         THE_OS="OSF1"