bug-glpk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-glpk] GLPK (4.47) fails to build with LTO (GCC 4.6.3, '-flto')


From: Andrew Makhorin
Subject: Re: [Bug-glpk] GLPK (4.47) fails to build with LTO (GCC 4.6.3, '-flto')
Date: Sun, 18 Mar 2012 14:46:57 +0300

Hi Xypron,

> many users may not be aware of the correct usage of autotools. Hence I
>  suggest you add a file bootstrap.sh to the distribution with content
> 
> #!/bin/sh
> libtoolize --copy --force
> aclocal -I m4
> autoconf
> autoheader
> automake --add-missing --copy
> 
> and add a note in the INSTALL file how to use it. 

Thank you for the suggestion.

> 
> The problem with flto was reproducable on my machine and was corrected
>  by running bootstrap.sh

I use gcc, autotools, and libtools dated about 3 years ago while the LTO
feature was introduced in April 2010, so some autoconf tests in the glpk
configure script as well as libtools may work improperly (which they do)
when the -flto option is enabled.

> 
> I am not sure if copying .m4 files isn't part of the problem observed and
> should be avoided:
> 
> #!/bin/sh
> libtoolize --force
> aclocal -I m4
> autoconf
> autoheader
> automake --add-missing --copy
> 

'-I m4' just specifies a directory for m4 macros; I don't think that
that may cause any problems.


Andrew Makhorin




reply via email to

[Prev in Thread] Current Thread [Next in Thread]