Page MenuHomeFreeBSD

Add ELF Tool Chain's c++filt to the build
ClosedPublic

Authored by emaste on Apr 30 2015, 3:00 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Apr 24, 5:01 AM
Unknown Object (File)
Sat, Apr 20, 5:12 PM
Unknown Object (File)
Sat, Apr 20, 5:12 PM
Unknown Object (File)
Sat, Apr 20, 5:12 PM
Unknown Object (File)
Sat, Apr 20, 5:12 PM
Unknown Object (File)
Thu, Apr 18, 2:57 PM
Unknown Object (File)
Feb 22 2024, 11:29 AM
Unknown Object (File)
Feb 21 2024, 9:41 PM

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

emaste retitled this revision from to Add ELF Tool Chain's c++filt to the build.
emaste updated this object.
emaste edited the test plan for this revision. (Show Details)
emaste added a reviewer: brooks.
emaste added a subscriber: Unknown Object (MLST).

Oh - we also need either:

diff --git a/gnu/usr.bin/cc/Makefile b/gnu/usr.bin/cc/Makefile
index abc9876..12ee7f8 100644
--- a/gnu/usr.bin/cc/Makefile
+++ b/gnu/usr.bin/cc/Makefile
@@ -12,7 +12,10 @@ SUBDIR+= cpp
 .endif
 
 .if ${MK_CXX} != "no"
-SUBDIR+= cc1plus c++ c++filt
+SUBDIR+= cc1plus c++
+.if ${MK_ELFTOOLCHAIN_TOLOLS} != "no"
+SUBDIR+= c++filt
+.endif
 .endif
 
 .if ${MK_GCOV} != "no"

or

--- a/usr.bin/Makefile
+++ b/usr.bin/Makefile
@@ -238,7 +238,9 @@ SUBDIR+=    ee
 
 .if ${MK_ELFTOOLCHAIN_TOOLS} != "no"
 _addr2line=    addr2line
+.if ${MK_GCC} != "no" && ${MK_CXX} != "no"
 _cxxfilt=      cxxfilt
+.endif
 _elfcopy=      elfcopy
 _nm=           nm
 _readelf=      readelf

s/MK_ELFTOOLCHAIN_TOLOLS/MK_ELFTOOLCHAIN_TOOLS/ required :)

emaste edited edge metadata.
  • prefer ELF Tool Chain's c++filt
  • exclude from make delete-old
  • fix typo
gnu/usr.bin/cc/Makefile
16 ↗(On Diff #5108)

Sigh, this is backwards.
Will update to == "no" - i.e., build GCC's c++filt in the WITHOUT_ELFTOOLCHAIN_TOOLS case.

brooks edited edge metadata.

Looks good to me.

This revision is now accepted and ready to land.Apr 30 2015, 3:43 PM
imp added a reviewer: imp.
imp added a subscriber: imp.

I came to troll you for TOLO -> YOLO, but brooks beat me to it...

This revision was automatically updated to reflect the committed changes.