🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: net.lang.c++
Article #278

Problem with cc in 4.3bsd

#278
From: das
Date: Tue, 05 Aug 1986 00:23
14 lines
1192 bytes
For some reason, the 4.3 bsd C compiler does something funny when you give
cc the -c flag, the -o flag, and only one source file; the command
	cc -c -o blah blah.c
puts the object file in "blah" and produces no "blah.o" file.  This, of course,
is not what the SysV and 4.2 cc do; they effectively ignore the -o option when
-c is specified.

This breaks the CC script, since ..o files are not produced.  To fix it, you
have to not accumulate the "-o filename" in the shell variable X; instead,
accumulate it in a variable named OF, say, so you can echo it when needed.

-- David Smallberg, das@locus.ucla.edu, {sdcrdcf,ucbvax}!ucla-cs!das

-- David Smallberg, das@locus.ucla.edu, {sdcrdcf,ucbvax}!ucla-cs!das
Technical Details
Message-ID: <376@curly.ucla-cs.ARPA>
Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!caip!ucla-cs!das

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!caip!ucla-cs!das
From: das@LOCUS.UCLA.EDU
Newsgroups: net.lang.c++
Subject: Problem with cc in 4.3bsd
Message-ID: <376@curly.ucla-cs.ARPA>
Date: Mon, 4-Aug-86 20:23:14 EDT
Article-I.D.: curly.376
Posted: Mon Aug  4 20:23:14 1986
Date-Received: Tue, 5-Aug-86 22:48:38 EDT
Reply-To: das@LOCUS.UCLA.EDU (David Smallberg)
Organization: UCLA Computer Science Department
Lines: 14