www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/07/18/03:11:15

Date: Thu, 18 Jul 1996 10:05:53 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Bresie <breezy AT dali DOT math DOT swt DOT edu>
Cc: djgpp AT delorie DOT com
Subject: Re: Problem Compiling via Make
In-Reply-To: <4sh3m5$gj1@pirates.cs.swt.edu>
Message-Id: <Pine.SUN.3.91.960718100142.338C-100000@is>
Mime-Version: 1.0

On 16 Jul 1996, Bresie wrote:

> LIB_FLAGS = -L/C/djgpp/LIB -lxlib
> CFLAGS = $(LIB_FLAGS -O2)
           ^^^^^^^^^^^^^^^^
First, you should have said ``$(LIB_FLAGS) -O2''.  But it's a bad idea to 
put -lxlib into compilation switches, because -lxlib should go to the end 
of the command line, so the library is scanned AFTER all the object 
files.  It's best to put -lxlib and such into a separate variable called 
(by convention) $(LOADLIBES); then put it on the link commands only, you 
don't need to add it to the compile-only rules that use gcc -c.

- Raw text -


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