Re: Error when trying --enable-lto on Windows

2015-09-16 Thread Tor Lillqvist
> > > I could try see what happens if I also turn it on. (After all, if LTO > worked, it would be used specifically in "production" builds, where > mergedlibs is also used, so in case the error for some reason goes away > when mergedlibs is used, fixing it would be only of academic interest.) > Pe

Re: Error when trying --enable-lto on Windows

2015-09-15 Thread Tor Lillqvist
> will this also turn on --enable-mergedlibs implicitly or is that off? > It is off. I could try see what happens if I also turn it on. (After all, if LTO worked, it would be used specifically in "production" builds, where mergedlibs is also used, so in case the error for some reason goes away whe

Re: Error when trying --enable-lto on Windows

2015-09-15 Thread Michael Stahl
On 15.09.2015 21:35, Tor Lillqvist wrote: > Anybody care to guess what might cause this? > >Creating library > C:/cygwin64/home/Tor/lo/master/workdir/LinkTarget/Library/ifwk.lib and > object C:/cygwin64/home/Tor/lo/master/workdir/LinkTarget/Library/ifwk.exp > modulemanager.o : error LNK2001: u

Error when trying --enable-lto on Windows

2015-09-15 Thread Tor Lillqvist
Anybody care to guess what might cause this? Creating library C:/cygwin64/home/Tor/lo/master/workdir/LinkTarget/Library/ifwk.lib and object C:/cygwin64/home/Tor/lo/master/workdir/LinkTarget/Library/ifwk.exp modulemanager.o : error LNK2001: unresolved external symbol "__declspec(dllimport) publi