]>
Commit | Line | Data |
---|---|---|
51f9e7ac MT |
1 | diff -ur gcc-4.1.2/gcc/cp/g++spec.c gcc-4.1.2-gcc_eh/gcc/cp/g++spec.c |
2 | --- gcc-4.1.2/gcc/cp/g++spec.c 2005-06-25 02:59:41.000000000 +0200 | |
3 | +++ gcc-4.1.2-gcc_eh/gcc/cp/g++spec.c 2007-08-03 14:46:03.000000000 +0200 | |
4 | @@ -251,7 +251,7 @@ | |
5 | #endif | |
6 | ||
7 | /* Make sure to have room for the trailing NULL argument. */ | |
8 | - num_args = argc + added + need_math + shared_libgcc + (library > 0) + 1; | |
9 | + num_args = argc + added + need_math + shared_libgcc + 2 * (library > 0) + 1; | |
10 | arglist = xmalloc (num_args * sizeof (char *)); | |
11 | ||
12 | i = 0; | |
13 | @@ -311,7 +311,10 @@ | |
14 | { | |
15 | arglist[j] = saw_profile_flag ? LIBSTDCXX_PROFILE : LIBSTDCXX; | |
16 | if (arglist[j][0] != '-' || arglist[j][1] == 'l') | |
17 | - added_libraries++; | |
18 | + { | |
19 | + arglist[++j] = "-lgcc_eh"; | |
20 | + added_libraries += 2; | |
21 | + } | |
22 | j++; | |
23 | } | |
24 | if (saw_math) |