[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.
- [Bug ld/24873] New: ld.bfd fails if -lm is included only once within --start-group … --end-group, dilyan.palauzov at aegee dot org, 2019/08/02
- [Bug ld/24873] ld.bfd fails if -lm is included only once within --start-group … --end-group, dilyan.palauzov at aegee dot org, 2019/08/02
- [Bug ld/24873] gcc -flto objects result in --start-group … --end-group failure to include --as-needed libraries, amodra at gmail dot com, 2019/08/02
- [Bug ld/24873] gcc -flto objects result in --start-group … --end-group failure to include --as-needed libraries, dilyan.palauzov at aegee dot org, 2019/08/03
- [Bug ld/24873] gcc -flto objects result in --start-group … --end-group failure to include --as-needed libraries, amodra at gmail dot com, 2019/08/04
- [Bug ld/24873] gcc -flto objects result in --start-group … --end-group failure to include --as-needed libraries, amodra at gmail dot com, 2019/08/04
- [Bug ld/24873] gcc -flto objects result in --start-group … --end-group failure to include --as-needed libraries, amodra at gmail dot com, 2019/08/05
- [Bug ld/24873] gcc -flto objects result in --start-group … --end-group failure to include --as-needed libraries,
dilyan.palauzov at aegee dot org <=
- [Bug ld/24873] gcc -flto objects result in --start-group … --end-group failure to include --as-needed libraries, dilyan.palauzov at aegee dot org, 2019/08/05
- [Bug ld/24873] gcc -flto objects result in --start-group … --end-group failure to include --as-needed libraries, amodra at gmail dot com, 2019/08/06
- [Bug ld/24873] gcc -flto objects result in --start-group … --end-group failure to include --as-needed libraries, amodra at gmail dot com, 2019/08/06
- [Bug ld/24873] gcc -flto objects result in --start-group … --end-group failure to include --as-needed libraries, amodra at gmail dot com, 2019/08/06
- [Bug ld/24873] gcc -flto objects result in --start-group … --end-group failure to include --as-needed libraries, cvs-commit at gcc dot gnu.org, 2019/08/06
- [Bug ld/24873] gcc -flto objects result in --start-group … --end-group failure to include --as-needed libraries, cvs-commit at gcc dot gnu.org, 2019/08/06
- [Bug ld/24873] gcc -flto objects result in --start-group … --end-group failure to include --as-needed libraries, amodra at gmail dot com, 2019/08/06
- [Bug ld/24873] gcc -flto objects result in --start-group … --end-group failure to include --as-needed libraries, dilyan.palauzov at aegee dot org, 2019/08/06