Bug 2024647 - libtool does not support -fuse-ld= and -fsanitize flags
Summary: libtool does not support -fuse-ld= and -fsanitize flags
Keywords:
Status: ASSIGNED
Alias: None
Product: Fedora
Classification: Fedora
Component: libtool
Version: rawhide
Hardware: All
OS: Linux
low
unspecified
Target Milestone: ---
Assignee: mkulik
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-11-18 15:22 UTC by Dmitri A. Sergatskov
Modified: 2021-11-30 11:56 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: Bug


Attachments (Terms of Use)

Description Dmitri A. Sergatskov 2021-11-18 15:22:46 UTC
Description of problem:
Currently libtool does not understand -fule-ld= flag 

Version-Release number of selected component (if applicable):
libtool-2.4.6-44

How reproducible:
100%

Steps to Reproduce:
1.try to compile something and pass LDFLAGS="-fuse-ld=lld"
2. 
3.

Actual results:
/usr/bin/ld will be used for linking

Expected results:

/usr/bin/lld is used for linking

Additional info:

This applies to RHEL/Centos libtool as well.

The patch is available at:

https://github.com/PhantomX/slackbuilds/blob/main/libtool/patches/libtool-2.4.6-fuse-ld.patch

Comment 1 Dmitri A. Sergatskov 2021-11-18 15:53:22 UTC
Perhaps add support for "-fsanitize=" flag as well. Here is Debian's patch:

https://salsa.debian.org/mckinstry/libtool/-/commit/26c23f951d049241128e5e04a7bbc263e5b145f1


Note You need to log in before you can comment on or make changes to this bug.