Bug 270663 - Mk/bsd.port.mk: USE_BINUTILS does not include STRIP
Summary: Mk/bsd.port.mk: USE_BINUTILS does not include STRIP
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Ports Framework (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Port Management Team
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-04-05 20:29 UTC by Ed Maste
Modified: 2023-07-29 06:19 UTC (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ed Maste freebsd_committer freebsd_triage 2023-04-05 20:29:57 UTC
Mk/bsd.port.mk has

.    if defined(USE_BINUTILS) && !defined(DISABLE_BINUTILS)
BUILD_DEPENDS+= ${LOCALBASE}/bin/as:devel/binutils
BINUTILS?=  ADDR2LINE AR AS CPPFILT GPROF LD NM OBJCOPY OBJDUMP RANLIB \
    READELF SIZE STRINGS
...

We are attempting to fix issues arising from WITH_LLVM_BINUTILS (see PR258872) and a number of ports are failing due to llvm-strip being overly strict. I would like to add a LLVM_STRIP_UNSAFE tag (similar to the existing LLD_UNSAFE) but it appears USE_BINUTILS has no provision for using binutils strip?