bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/24873] gcc -flto objects result in --start-group … --end-group f


From: dilyan.palauzov at aegee dot org
Subject: [Bug ld/24873] gcc -flto objects result in --start-group … --end-group failure to include --as-needed libraries
Date: Mon, 05 Aug 2019 13:57:14 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=24873

--- Comment #7 from dilyan.palauzov at aegee dot org <dilyan.palauzov at aegee 
dot org> ---
With meson 0.48 and below, the configure phase terminates with
Meson encountered an error in file meson.build, line 672, column 1:
Native dependency 'check' not found

With meson 0.49 the configure phase terminates properly and the link parameters
contain double-lm withing start/end-group.  With meson 0.51.1 the configure
phase terminates properly and the link parameters contain a single -lm in the
start/end-group.

At https://mail.aegee.org/dpa/ld24873/ I have uploaded my build environment:

/ contains the source code,
/build-0.51.1 contains the compiled and partially linked code,
/build-0.51/LIBS contains the libraries, which are mentioned for the linking on
the link line.  Thus for link-line

cc  -o test-utils 'test-utils@exe/src_libinput-util.c.o'
'test-utils@exe/test_test-utils.c.o' -Wl,--no-undefined -Wl,--as-needed
-Wl,--start-group libinput.so.10.13.0 liblibinput-util.a libquirks.a
/usr/local/lib/libmtdev.so /usr/x86_64-linux-gnu/libudev.so
/usr/local/lib/libevdev.so -lm -lrt /usr/local/lib/libwacom.so
/usr/local/lib/libcheck.a -ldl /lib64/libsystemd.so -Wl,--end-group
'-Wl,-rpath,$ORIGIN/:/usr/x86_64-linux-gnu'
-Wl,-rpath-link,/src/wayland/libinput-1.13.4/build-0.51/
-Wl,-rpath-link,/usr/x86_64-linux-gnu

The libraries included are libcheck.a, libevdev.so, libmtdev.so, libsystemd.so,
libudev.so and libwacom.so.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

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