Bug 270663

Summary: Mk/bsd.port.mk: USE_BINUTILS does not include STRIP
Product: Ports & Packages Reporter: Ed Maste <emaste>
Component: Ports FrameworkAssignee: Port Management Team <portmgr>
Status: New ---    
Severity: Affects Only Me CC: cy, ehaupt, freebsd, pat, ports-bugs
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   
See Also: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=258872
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=270961

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?