Bug 20707

Summary: /usr/libexec/cpp doesn't support -undef flag
Product: Base System Reporter: Lyndon Nerenberg <lyndon>
Component: gnuAssignee: David E. O'Brien <obrien>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 4.0-STABLE   
Hardware: Any   
OS: Any   

Description Lyndon Nerenberg 2000-08-18 21:20:00 UTC
/usr/libexec/cpp doesn't support the -undef flag, although --help
documents it. (As does the cpp(1) manpage, although it's unclear
if cpp(1) is meant to apply to /usr/libexec/cpp as well as the
one in /usr/bin.)

lcc (/usr/ports/lang/lcc) invokes /usr/libexec/cpp with -undef, and
thus breaks when /usr/libexec/cpp barfs about the unrecognized option.

Fix: 

Re-enable -undef for the cpp in /usr/libexec.
How-To-Repeat: 
Install lcc from ports, then try to compile something.
Comment 1 Sheldon Hearn freebsd_committer freebsd_triage 2000-08-21 13:21:04 UTC
Responsible Changed
From-To: freebsd-bugs->obrien

Over to the maintainer.
Comment 2 David E. O'Brien freebsd_committer freebsd_triage 2000-11-10 18:02:53 UTC
State Changed
From-To: open->closed

-undef is not needed with the new libexec/cpp designed just for compiler's 
use.  Fix committed to the lcc port.