This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
[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: [libstdc++ patch] Add cygwin flags to tests_flags
- From: "Billinghurst, David (CRTS)" <David dot Billinghurst at riotinto dot com>
- Date: Mon, 1 Jan 2001 13:18:11 -0000
- Cc: "'libstdc++ at gcc dot gnu dot org'" <libstdc++ at gcc dot gnu dot org>
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