[MPlayer-dev-eng] configure and unsupported -rdynamic flag onmingw
Sascha Sommer
saschasommer at freenet.de
Thu Apr 8 17:10:16 CEST 2004
> On Thu, Apr 08, 2004 at 04:54:36PM +0200, Sascha Sommer wrote:
> > > On Thu, Apr 08, 2004 at 01:00:02AM +0200, Sascha Sommer wrote:
> > > > on mingw I always get a
> > > > gcc.exe: unrecognized option `-rdynamic
> > > > at the end of the linking stage o
> > > >
> > > > So I checked configure from where this flag might come from
> > > >
> > > > In line 5770 in configure I can see the following:
> > > >
> > > > # Dynamic linking flags
> > > > # (FIXME: 'echocheck "dynamic linking"' above and modify here
> > accordingly)
> > > > _ld_dl_dynamic=''
> > > > bsd && _ld_dl_dynamic='-rdynamic'
> > > > test "$_xanim" = yes && _ld_dl_dynamic='-rdynamic'
> > > > test "$_real" = yes && _ld_dl_dynamic='-rdynamic'
> > > >
> > > > Shouldn't it be test bsd ?
> > >
> > > I presume -rdynamic is needed for the loader on unix-like systems
> > > and on bsd's even without loader. On mingw and cygwin, it's not
> > > needed, but it also doesn't break anything. You can ignore it.
>
> IIRC there was a problem report related to this.
>
> > I was wrong the test "$_real" line is causing problems.
> > It should be
> > test "$_real" = yes && not mingw32 && _ld_dl_dynamic='-rdynamic'
>
> If we change it we should also check for cygwin IMHO.
Hm, doesn't cygwin support -rdynamic?
> BTW, maybe we should add a win32() (and maybe bsd()) macro to configure to
> be able to check for both MinGW and Cygwin at the same time, they are
quite
> similar.
>
yes.
Sascha
More information about the MPlayer-dev-eng
mailing list