From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1PYCaS-0007Oy-KC for garchives@archives.gentoo.org; Thu, 30 Dec 2010 07:06:12 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2652FE0724 for ; Thu, 30 Dec 2010 07:06:12 +0000 (UTC) Received: from mailgate.caprica.metux.de (caprica.metux.de [82.165.128.25]) by pigeon.gentoo.org (Postfix) with ESMTP id B53F3E06C1 for ; Thu, 30 Dec 2010 06:41:46 +0000 (UTC) Received: from mailgate.caprica.metux.de (localhost.localdomain [127.0.0.1]) by mailgate.caprica.metux.de (8.14.4/8.14.4) with ESMTP id oBU6bQlS032581 for ; Thu, 30 Dec 2010 07:37:26 +0100 Received: (from uucp@localhost) by mailgate.caprica.metux.de (8.14.4/8.14.4/Submit) with UUCP id oBU6bBlx032569 for gentoo-embedded@lists.gentoo.org; Thu, 30 Dec 2010 07:37:11 +0100 Received: (from weigelt@localhost) by nibiru.metux.de (8.12.10/8.12.10) id oBU6Znt4017283 for gentoo-embedded@lists.gentoo.org; Thu, 30 Dec 2010 07:35:49 +0100 Date: Thu, 30 Dec 2010 07:35:49 +0100 From: Enrico Weigelt To: gentoo-embedded@lists.gentoo.org Subject: Re: [gentoo-embedded] Is a compilation depend on the running kernel? Message-ID: <20101230063549.GB10596@nibiru.local> References: Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-embedded@lists.gentoo.org Reply-to: gentoo-embedded@lists.gentoo.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.1i X-Terror: bin laden, kill bush, Briefbombe, Massenvernichtung, KZ, X-Nazi: Weisse Rasse, Hitlers Wiederauferstehung, 42, X-Antichrist: weg mit schaeuble, ausrotten, heiliger krieg, al quaida, X-Killer: 23, endloesung, Weltuntergang, X-Doof: wer das liest ist doof X-Archives-Salt: a7cbaa86-ceb7-429b-9235-22cce5c910bf X-Archives-Hash: 4d7417bc8c6fcecbe6f7944e8b416605 * Kfir Lavi schrieb: > Does configure tests check the running kernel for compiled in interfaces? Actually, I've already seen packages doing such crap. On autoconf'ed packages, just look for AC_TRY_RUN or AC_CHECK_FILE, etc, and you'll know the package is ill-designed. > If yes, lets say I have very lean kernel on the target, how I can compile > against the target kernel? #1: always use a sysroot'ed toolchain with matching kernel headers. (crosstool-ng is your friend) #2: for testing, additionally use an cross-toolchain which produces binaries that cannot be executed on your machine (so all attempts to run tests on the building system radically fail) #3: on autotool'ed packages, look for crap like AC_TRY_RUN, etc and fix it #4: join the oss-qm project ;-p cu -- ---------------------------------------------------------------------- Enrico Weigelt, metux IT service -- http://www.metux.de/ phone: +49 36207 519931 email: weigelt@metux.de mobile: +49 151 27565287 icq: 210169427 skype: nekrad666 ---------------------------------------------------------------------- Embedded-Linux / Portierung / Opensource-QM / Verteilte Systeme ----------------------------------------------------------------------