From owner-freebsd-hackers@FreeBSD.ORG Thu Apr 3 23:11:38 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CB19B37B401 for ; Thu, 3 Apr 2003 23:11:38 -0800 (PST) Received: from milla.ask33.net (milla.ask33.net [217.197.166.60]) by mx1.FreeBSD.org (Postfix) with ESMTP id A933243F75 for ; Thu, 3 Apr 2003 23:11:37 -0800 (PST) (envelope-from nick@milla.ask33.net) Received: by milla.ask33.net (Postfix, from userid 1001) id 752B43ABB8E; Fri, 4 Apr 2003 09:13:46 +0200 (CEST) Date: Fri, 4 Apr 2003 09:13:46 +0200 From: Pawel Jakub Dawidek To: Marcel Moolenaar Message-ID: <20030404071346.GN54604@garage.freebsd.pl> References: <20030403212300.GL54604@garage.freebsd.pl> <20030403215059.GA37698@athlon.pn.xcllnt.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="6tPipYVl+OcoAvSh" Content-Disposition: inline In-Reply-To: <20030403215059.GA37698@athlon.pn.xcllnt.net> X-PGP-Key-URL: http://garage.freebsd.pl/jules.asc X-OS: FreeBSD 4.8-PRERELEASE i386 X-URL: http://garage.freebsd.pl User-Agent: Mutt/1.5.1i cc: freebsd-hackers@freebsd.org Subject: Re: Bug in make(1)? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Apr 2003 07:11:39 -0000 --6tPipYVl+OcoAvSh Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Apr 03, 2003 at 01:50:59PM -0800, Marcel Moolenaar wrote: +> Because you told make(1) to by virtue of including bsd.prog.mk +>=20 +> OBJS is derived from SRCS by replacing the extension. If SRCS +> contains foo/bar.c, OBJS will contain foo/bar.o... Yes, but take a look on compilation process. When file is compilated '-o' isn't specified (gcc -c test/tst.c), but when executable file is produced, gcc looks for tst.o in test directory (gcc -o tst test/tst.o). And IMHO if gcc want to look for objects somewhere it should put them there, so: gcc -o test/tst.o -c test/tst.c. Sometimes it is hard to change. --=20 Pawel Jakub Dawidek pawel@dawidek.net UNIX Systems Programmer/Administrator http://garage.freebsd.pl Am I Evil? Yes, I Am! http://cerber.sourceforge.net --6tPipYVl+OcoAvSh Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (FreeBSD) iQCVAwUBPo0wqj/PhmMH/Mf1AQFgNgP/SC1bFO+K9aujgdHtt9pbzB5wCWfOs3XK DDaL4IYDeiFq8jsn6ELO5R8Yqjp3FRcxIEKQlfMRvddqqszrUE8hbU88JhA1yD9y /fgv147XGEpczB8Ax5pGKuiuJH1OYvM5vR+WuOS6iz/WiXGo/BwgRIjRQtvmdw7/ AVh7/3HVD60= =6HQf -----END PGP SIGNATURE----- --6tPipYVl+OcoAvSh--