This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
RE: [libstdc++ patch] Add cygwin flags to tests_flags
- To: "'gcc-patches at gcc dot gnu dot org'" <gcc-patches at gcc dot gnu dot org>
- Subject: RE: [libstdc++ patch] Add cygwin flags to tests_flags
- From: "Billinghurst, David (CRTS)" <David dot Billinghurst at riotinto dot com>
- Date: Mon, 1 Jan 2001 22:30:50 -0000
- Cc: "'libstdc++ at gcc dot gnu dot org'" <libstdc++ at gcc dot gnu dot org>
Can someone please check this in. Approved by Gabriel Dos Reis
> -----Original Message-----
> From: Billinghurst, David (CRTS)
> Sent: Tuesday, 2 January 2001 0:18
> To: 'gcc-patches@gcc.gnu.org'
> Cc: 'libstdc++@gcc.gnu.org'
> Subject: [libstdc++ patch] Add cygwin flags to tests_flags
>
> Cygwin needs different libraries to run the libstdc++-v3 and g++
> testsuites.
> With this patch I can build and test both libstdc++-v3 and g++ on cygwin
> 1.1.17
>
>
> 2001-01-01 David Billinghurst <David.Billinghurst@riotinto.com>
>
> * tests_flags.in Set target specific LIBS for cygwin
>
> --- libstdc++-v3/tests_flags.in.1 Mon Jan 1 23:02:05 2001
> +++ libstdc++-v3/tests_flags.in Mon Jan 1 23:11:09 2001
> @@ -154,7 +154,11 @@
> ${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