Page MenuHomeFreeBSD

cmake: Do not rely on ${STRIP} for debugging
ClosedPublic

Authored by mva on Sep 30 2014, 7:07 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Nov 7, 10:28 PM
Unknown Object (File)
Fri, Oct 31, 7:23 AM
Unknown Object (File)
Wed, Oct 29, 9:18 PM
Unknown Object (File)
Sun, Oct 26, 7:23 PM
Unknown Object (File)
Sat, Oct 18, 1:44 AM
Unknown Object (File)
Oct 6 2025, 5:40 PM
Unknown Object (File)
Oct 6 2025, 11:51 AM
Unknown Object (File)
Oct 6 2025, 8:04 AM
Subscribers

Details

Reviewers
makc
bapt
Group Reviewers
portmgr
kde
Summary

bsd.ports.mk sets STRIP= after all Uses files have been processed initially.
If you have WITH_DEBUG=yes set, cmake's INSTALL_TARGET has been set already to
install/strip, before STRIP is reset.

The quick fix also evaluates WITH_DEBUG, which should be checked anyways,
since this is the correct user-settable argument, that should have precedence
over implementation details of bsd.port.mk.

Test:

/usr/ports/graphics/openshadinglanguage # make -VWITH_DEBUG -VINSTALL_TARGET
yes
install/strip

Diff Detail

Repository
rP FreeBSD ports repository
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

mva retitled this revision from to cmake: Do not rely on ${STRIP} for debugging.
mva updated this object.
mva edited the test plan for this revision. (Show Details)
mva added reviewers: portmgr, kde.
mva edited edge metadata.
makc added a reviewer: makc.
makc added a subscriber: makc.

looks ok.

bapt added a reviewer: bapt.
This revision is now accepted and ready to land.Oct 2 2014, 7:22 AM