gcc: .rdata problem
Gerrit P. Haase
gerrit@familiehaase.de
Tue Jul 12 17:55:00 GMT 2005
Dave Korn wrote:
> ----Original Message----
>
>>From: Charles Wilson
>>Sent: 12 July 2005 01:27
>
>
>>I dunno about the .rdata issue, but you can't use /usr/bin/libtool with
>>g++-3.4.4 because /usr/bin/libtool encodes explicit predep and postdep
>>objects and paths specific to g++-3.3.3.
>
>
>>Long term fix: I need to release libtool packages in sync with gcc
>>releases. Look for a g++-3.4.4 compatible (but g++-3.3.3 INcompatible)
>>libtool1.5 update soon.
>>
>
>
> dk@mace /artimi/firmware> grep 3.3.3 /bin/libtool
> predep_objects="/usr/lib/gcc-lib/i686-pc-cygwin/3.3.3/crtbegin.o"
> postdep_objects="/usr/lib/gcc-lib/i686-pc-cygwin/3.3.3/crtend.o"
> compiler_lib_search_path="-L/usr/lib/gcc-lib/i686-pc-cygwin/3.3.3
> -L/usr/lib/gcc
> -lib/i686-pc-cygwin/3.3.3/../../.."
> dk@mace /artimi/firmware>
>
> Hey, why not extract that stuff from gcc somehow? The -print-search-dirs
> output could be manipulated to give you that stuff, couldn't it?
Why wasn't this included in the specs?
Anyway, since crt* .o object files are no longer present in 3.4,
simply checking which version is used should do it:
$ gcc --version | grep 3.3 && echo true
$ gcc --version | grep 3.4 && echo true
gcc (GCC) 3.4.4 (cygming special) (gdc 0.12, using dmd 0.125)
true
Depending on the result, define *dep_objects or leave it undefined.
Gerrit
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
More information about the Cygwin
mailing list