bug-gettext
[Top][All Lists]
Advanced

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

[bug-gettext] [bug #56109] many autoconf tests produce wrong results wit


From: Bruno Haible
Subject: [bug-gettext] [bug #56109] many autoconf tests produce wrong results with CC="gcc -flto"
Date: Sun, 18 Aug 2019 11:05:03 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0

Update of bug #56109 (project gettext):

                  Status:               Confirmed => Fixed                  
             Open/Closed:                    Open => Closed                 

    _______________________________________________________

Follow-up Comment #20:

Fixed in gnulib through this commit:
https://git.savannah.gnu.org/gitweb/?p=gnulib.git;a=commitdiff;h=bdf8b1d2b74e12648edafffcda43832bc35e3d1f

However, building gettext with CC="gcc -fto" does still not work, because of
an issue in libtool: libtool's _LT_CMD_GLOBAL_SYMBOLS cannot determine
lt_cv_sys_global_symbol_pipe in this situation, because 'nm' does not work on
object files. Test case:

conftest.c:

char nm_test_var;
void nm_test_func(void);
void nm_test_func(void){}
int main(){nm_test_var='a';nm_test_func();return(0);}



$ gcc -flto -O2 -c conftest.c ; nm conftest.o
nm: conftest.o: plugin needed to handle lto object
0000000000000001 C __gnu_lto_slim
0000000000000001 C __gnu_lto_v1


Feel free to report this to the binutils people.

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?56109>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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