Compiling with -flto

Bug #1333035 reported by Dilyan Palauzov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
libmemcached
New
Undecided
Unassigned

Bug Description

I have gcc490, libtool 2.4.2.444.30-da30-dirty, and libmemcached 1.0.18. I run CFLAGS = "-flto -O3" CXXCFLAGS="-flto -O3" ./configure . In turn, because of optimizations, client/.libs/libutilities.a does not contain close_stdio and clients/memcapable does not link due to missing close_stdio() .

Please disable -fvisibility=hidden from CPPflags, when creating clients/libutilities , so that close_stdio() is contained there /remains visible when linking to the programs in clients/, or ensure by other means, that passing -flto to GCC can link the clients/ programs.

Compiling with just -O3 and without -flto works fine.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.