Subject: Re: USE_LIBSTDCXX
To: None <tech-toolchain@netbsd.org>
From: Nick Hudson <skrll@netbsd.org>
List: tech-toolchain
Date: 08/16/2004 14:35:13
On Monday 16 August 2004 13:34, matthew green wrote:
> --- gnu/dist/gcc/gcc/cp/g++spec.c 23 Jul 2003 02:41:09 -0000 1.1.1.1
> +++ gnu/dist/gcc/gcc/cp/g++spec.c 16 Aug 2004 08:44:25 -0000
> @@ -42,6 +42,9 @@
> #ifndef LIBSTDCXX_PROFILE
> #define LIBSTDCXX_PROFILE "-lstdc++"
> #endif
> +#ifndef LIBSUPCXX
> +#define LIBSUPCXX "-lsupc++"
> +#endif
>
> void
> lang_specific_driver (in_argc, in_argv, in_added_libraries)
> @@ -129,7 +132,8 @@
> if (argv[i][0] == '-')
> {
> if (library != 0 && (strcmp (argv[i], "-nostdlib") == 0
> - || strcmp (argv[i], "-nodefaultlibs") == 0))
> + || strcmp (argv[i], "-nodefaultlibs") == 0
> + || strcmp (argv[i], LIBSUPCXX) == 0))
> {
> library = 0;
> }
>
>
> hmmmm what exactly is this bit doing?
Its stops the g++ frontend fron adding -lstdc++ when -lsupc++ is used. Maybe
it should be -nolibstdcxx?
Nick