OSDN Git Service

* tests_flags.in: Fix typo in usage.
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 1 Jan 2001 23:14:43 +0000 (23:14 +0000)
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 1 Jan 2001 23:14:43 +0000 (23:14 +0000)
        * tests_flags.in: Set target specific LIBS for cygwin.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38599 138bc75d-0d04-0410-961f-82ee72b054a4

libstdc++-v3/ChangeLog
libstdc++-v3/tests_flags.in

index 6b657f9..7b7ec1e 100644 (file)
@@ -1,3 +1,9 @@
+2001-01-01  David Billinghurst <David.Billinghurst@riotinto.com>
+
+       * tests_flags.in: Fix typo in usage.
+
+       * tests_flags.in: Set target specific LIBS for cygwin.
+
 2000-12-31  Alexandre Oliva  <aoliva@redhat.com>
 
        * include/c_std/bits/std_cstdlib.h (mblen): Protect against macro.
index 2e2e59b..017c0d0 100644 (file)
@@ -41,7 +41,7 @@
 print_usage() {
     cat <<EOF
 Usage: 
-  tests_fags --compiler <build-dir> <src-dir>
+  tests_flags --compiler <build-dir> <src-dir>
              --built-library <build-dir>  <src-dir>
              --installed-library <build-dir> <src-dir> <install-dir>
 EOF
@@ -154,7 +154,11 @@ case ${query} in
           ${LIB_PATH}/../libsupc++/libsupc++.la  ${LIB_PATH}/libstdc++.la
           -no-install"
     LTEXE="${LIBTOOL} --mode=execute"
-    LIBS="-nodefaultlibs -lc -lgcc -lc"
+    case @target_os@ in
+        *cygwin*)  LIBS="-nodefaultlibs -lgcc -lcygwin -luser32
+                         -lkernel32 -ladvapi32 -lshell32" ;;
+        *)         LIBS="-nodefaultlibs -lc -lgcc -lc" ;;
+    esac
     ;;
     --installed-library)
     # For the installed version, we really only need to use libtool and