bug-ncurses
[Top][All Lists]
Advanced

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

Re: configure 'ncurses' when it is set '-flto' in CFLAGS, CXXFLAGS and L


From: Denis Pronin
Subject: Re: configure 'ncurses' when it is set '-flto' in CFLAGS, CXXFLAGS and LDFLAGS
Date: Thu, 04 Oct 2018 11:30:22 +0300

Definitely, we should reach out to the community of 'autotools' developers, as 
autoconf generates incorrect conftest.c, shouldn't we? 
I would suggest them how to resolve the issue

04.10.2018, 11:24, "Denis Pronin" <address@hidden>:
> maybe I could suggest you a patch to the 'configure' script? or you will do 
> it yourself?
> I would suggest that you should somehow use 'dlsym' in the first conftest.c, 
> correctly, with the right interface of dlsym, from dlfct.h. This shall 
> prevent the linker, in 'flto' mode, from throwing 'dlsym' away for it not 
> having been used
>
> 04.10.2018, 11:18, "Thomas Dickey" <address@hidden>:
>>  On Thu, Oct 04, 2018 at 10:46:57AM +0300, Denis Pronin wrote:
>>>   I am sorry. Something weird happened when I was sending to you an email, 
>>> my
>>>   email client had unexpectedly quit and I got confused whether the email 
>>> was
>>>   sent; I resent you the other email where briefly told you what's been 
>>> going
>>>   on. There a link has been, take a look
>>
>>  I saw it.
>>
>>>   As I understood it would be nice if you regenerate configure with a fresh
>>>   version of 'autoconf'
>>
>>  that would be unlikely to solve this problem: at the time, I compared 
>> against
>>  "fresh" autoconf, and its stub code did not fix the configuration that I was
>>  interested in, nor did it improve a few related problems with weak symbols
>>  on other platforms.
>>
>>  I'll take both into account (thanks)
>>
>>>   04.10.2018, 03:12, "Thomas Dickey" <address@hidden>:
>>>   > On Wed, Oct 03, 2018 at 11:20:15PM +0300, Denis Pronin wrote:
>>>   >>  Hi,
>>>   >>
>>>   >>  I work on gentoo linux, where CC, CXX, CFLAGS, CXXFLAGS, LDFLAGS are
>>>   >>  exposed to ./configure script of ncurses library. As 'configure' goes
>>>   >>  it checks whether it is supported linkage to dl*() functions. CFLAGS,
>>>   >>  CXXFLAGS and LDFLAGS contains '-flto' flag standing for 'link time
>>>   >>  optimization' taking place when compiling and linking against 
>>> libraries
>>>   >>  and object files
>>>   >>
>>>   >>  ./configure verifies support of dl*() functions by compiling the FIRST
>>>   >>  conftest.c looking like:
>>>   >
>>>   > thanks (I'll investigate - the discussion in the bug report was not 
>>> useful)
>>
>>  --
>>  Thomas E. Dickey <address@hidden>
>>  https://invisible-island.net
>>  ftp://ftp.invisible-island.net



reply via email to

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