From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Rob Browning Newsgroups: gmane.lisp.guile.bugs Subject: Re: building gen-scmconfig.c on FreeBSD Date: Tue, 14 Sep 2004 14:18:49 -0500 Sender: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Message-ID: <87llfcek12.fsf@trouble.defaultvalue.org> References: <75F4554A-015F-11D9-A50A-000D93673682@gmx.net> <87sm9s5re7.fsf@zip.com.au> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1095189628 30662 80.91.229.6 (14 Sep 2004 19:20:28 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 14 Sep 2004 19:20:28 +0000 (UTC) Cc: bug-guile@gnu.org Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Tue Sep 14 21:20:02 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1C7IqP-0007Om-00 for ; Tue, 14 Sep 2004 21:20:01 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C7Ivz-00038s-Mw for guile-bugs@m.gmane.org; Tue, 14 Sep 2004 15:25:47 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C7Ivx-00038n-7c for bug-guile@gnu.org; Tue, 14 Sep 2004 15:25:45 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C7Ivv-00038b-EQ for bug-guile@gnu.org; Tue, 14 Sep 2004 15:25:44 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C7Ivv-00038X-CD for bug-guile@gnu.org; Tue, 14 Sep 2004 15:25:43 -0400 Original-Received: from [66.93.216.237] (helo=defaultvalue.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1C7IqI-0003wV-Di for bug-guile@gnu.org; Tue, 14 Sep 2004 15:19:54 -0400 Original-Received: from trouble.defaultvalue.org (omen.defaultvalue.org [192.168.1.1]) by defaultvalue.org (Postfix) with ESMTP id A47A83FC1; Tue, 14 Sep 2004 14:19:52 -0500 (CDT) Original-Received: by trouble.defaultvalue.org (Postfix, from userid 1000) id 72700410AB; Tue, 14 Sep 2004 14:18:49 -0500 (CDT) Original-To: Kevin Ryde In-Reply-To: <87sm9s5re7.fsf@zip.com.au> (Kevin Ryde's message of "Thu, 09 Sep 2004 08:26:24 +1000") User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux) X-BeenThere: bug-guile@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.lisp.guile.bugs:1684 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.bugs:1684 Kevin Ryde writes: > Andreas V=F6gele writes: >> >> gen-scmconfig.$(OBJEXT): gen-scmconfig.c >> $(CC_FOR_BUILD) $(DEFS) $(INCLUDES) -c -o $@ $<; > > Yep, I'd been meaning to do that. But probably omitting $INCLUDES, > since they're likely to be host-system things, not build-system. > $DEFS probably only has -DHAVE_CONFIG_H, and may be unnecessary too. > > One thing for a proper cross-compile is to figure out > $OBJEXT_FOR_BUILD, which may be different from the host system. I'd > planned to go straight to an executable rather than through an obj. I can't recall offhand. Is CC_FOR_BUILD for executables that will be run on the host system? If not, then we shouldn't be using it at all. gen-scmconfig has to be run at build time by the host to generate the header, so it needs to be built by the host's compiler. Note that gen-scmconfig.c doesn't (and must not) depend on any target specific computations like sizeof(foo), etc. It is solely used as a portable way to generate scmconfig.h, taking into account the contents of config.h. --=20 Rob Browning rlb @defaultvalue.org and @debian.org; previously @cs.utexas.edu GPG starting 2002-11-03 =3D 14DD 432F AE39 534D B592 F9A0 25C8 D377 8C7E 7= 3A4 _______________________________________________ Bug-guile mailing list Bug-guile@gnu.org http://lists.gnu.org/mailman/listinfo/bug-guile