www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/05/05/07:26:40

Date: Sun, 5 May 1996 14:10:31 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: "A. Student" <Student AT gc DOT maricopa DOT edu>
Cc: djgpp AT delorie DOT com
Subject: Re: Repost: Problems with Make (building libc.a)
In-Reply-To: <4mb967$9s0@news.maricopa.edu>
Message-Id: <Pine.SUN.3.91.960505140640.11941L-100000@is>
Mime-Version: 1.0

On 2 May 1996, A. Student wrote:

> I am having a problem with Make.  When I try to build libc.a, make is 
> calling all of the .S files as .s files, hence it is not preprocessing 
> each file correctly.  I cannot find anywhere in the makefile where it

In this case, you don't use the right tools (like DJ already told you), 
but it might sometimes help to know that there are ways to force GCC 
invoke the correct programs even if its default rules fail.  The
"-x language" switches are there to do just that.  For instance, to tell 
gcc that file.s should be passed through cpp first, say this:

	gcc -x assembler-with-cpp -c file.s

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019