View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000503 | Perl for OS/2 | Bug | public | 2011-12-26 14:36 | 2020-08-24 03:11 |
Reporter | komh | Assigned To | psmedley | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Summary | 0000503: -static-libgcc does not work with gcc 4.4.6 | ||||
Description | Hi/2. When using libtool, -static-libgcc does not work with gcc 4.4.6. That is, even though -static-libgcc is specified on command line or in GCCOPT env var, the executable always depends on gcc446.dll. | ||||
Steps To Reproduce | sh libtool --tag=CXX --mode=link g++ xs.cpp -o xs.exe x:/path/to/usr/local446/lib/libstdc++.la -static-libgcc ----- xs.cpp #include <iostream> using namespace std; int main() { try { throw "Throw exception!"; } catch( char const *s ) { cout << "Catched exception = " << s << endl; } return 0; } ----- | ||||
Additional Information | This is due to -lgcc_so_d dependency of libstdc++.la Removing -lgcc_so_d from 'dependency_libs' of libstdc++.la solves this problem. But I don't know this is a right way. | ||||
Tags | No tags attached. | ||||
|
Your solution is correct (ie modifying libstdc++.la) I will fix this for the next release |
|
The reason why I am not sure, is that the other versions of gcc(4.3.4, 4.4.5, 4.5.2) don't have to this fix. They all have -lgcc_so_d dependency. |
|
does this work ok in 4.7.3 as released? I don't plan on updated older gcc versions |
|
Yes, this works in 4.7.3. You don't have to update older ones. ^^ |
|
Fixed in gcc 4.7 |
Date Modified | Username | Field | Change |
---|---|---|---|
2011-12-26 14:36 | komh | New Issue | |
2011-12-27 08:02 | psmedley | Note Added: 0002082 | |
2011-12-31 12:21 | komh | Note Added: 0002113 | |
2013-10-11 11:09 | psmedley | Note Added: 0002561 | |
2013-10-15 13:40 | komh | Note Added: 0002567 | |
2013-10-15 18:48 | psmedley | Note Added: 0002568 | |
2013-10-15 18:48 | psmedley | Status | new => resolved |
2013-10-15 18:48 | psmedley | Resolution | open => fixed |
2013-10-15 18:48 | psmedley | Assigned To | => psmedley |
2020-08-24 03:11 | psmedley | Status | resolved => closed |