From owner-freebsd-small Thu May 24 8:55:52 2001 Delivered-To: freebsd-small@freebsd.org Received: from info.iet.unipi.it (info.iet.unipi.it [131.114.9.184]) by hub.freebsd.org (Postfix) with ESMTP id 4199F37B423 for ; Thu, 24 May 2001 08:55:48 -0700 (PDT) (envelope-from luigi@info.iet.unipi.it) Received: (from luigi@localhost) by info.iet.unipi.it (8.9.3/8.9.3) id RAA35813; Thu, 24 May 2001 17:52:32 +0200 (CEST) (envelope-from luigi) From: Luigi Rizzo Message-Id: <200105241552.RAA35813@info.iet.unipi.it> Subject: cross-compiling PicoBSD To: small@freebsd.org Date: Thu, 24 May 2001 17:52:32 +0200 (CEST) X-Mailer: ELM [version 2.4ME+ PL61 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-small@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi, I have been trying to do a "cross-compile" of PicoBSD, ie. use a source tree different from the installed one. Basically the idea is to be able to use checked-out sources for, say, 5.0 using 4.x as build environment. The tricky point seems to be using a standard include directory different from /usr/include. I tried setting CFLAGS in the environment as below, and it seems to work, but I would like some comments from those of you familiar with the build process. In any case, I did the following: # cd to the directory where you extract your source tree lcvs co -r RELENG_4 src # extract sources ... lcvs co -r RELENG_4 ports/picobsd # .. and relevant ports mkdir -p usr/include # include files go here (setenv DESTDIR=`pwd` ; cd src; make includes) # create include tree setenv SRC `pwd` # used later by picobsd script setenv CFLAGS "-nostdinc -I`pwd`/usr/include" picobsd hope this helps... cheers luigi -----------------------------------+------------------------------------- Luigi RIZZO, luigi@iet.unipi.it . Dip. di Ing. dell'Informazione http://www.iet.unipi.it/~luigi/ . Universita` di Pisa TEL/FAX: +39-050-568.533/522 . via Diotisalvi 2, 56126 PISA (Italy) Mobile +39-347-0373137 -----------------------------------+------------------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-small" in the body of the message