From owner-freebsd-hackers@FreeBSD.ORG Fri Jun 4 22:32:42 2010 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8E0E91065672 for ; Fri, 4 Jun 2010 22:32:42 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from mail.zoral.com.ua (mx0.zoral.com.ua [91.193.166.200]) by mx1.freebsd.org (Postfix) with ESMTP id 08D2E8FC15 for ; Fri, 4 Jun 2010 22:32:41 +0000 (UTC) Received: from deviant.kiev.zoral.com.ua (root@deviant.kiev.zoral.com.ua [10.1.1.148]) by mail.zoral.com.ua (8.14.2/8.14.2) with ESMTP id o54MWmPo073616 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 5 Jun 2010 01:32:48 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (kostik@localhost [127.0.0.1]) by deviant.kiev.zoral.com.ua (8.14.4/8.14.4) with ESMTP id o54MWZ8d023020; Sat, 5 Jun 2010 01:32:35 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by deviant.kiev.zoral.com.ua (8.14.4/8.14.4/Submit) id o54MWYPl023019; Sat, 5 Jun 2010 01:32:34 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: deviant.kiev.zoral.com.ua: kostik set sender to kostikbel@gmail.com using -f Date: Sat, 5 Jun 2010 01:32:32 +0300 From: Kostik Belousov To: Hans Petter Selasky Message-ID: <20100604223232.GQ83316@deviant.kiev.zoral.com.ua> References: <201006042203.39515.hselasky@c2i.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="ViugPjSMr9TemhdD" Content-Disposition: inline In-Reply-To: <201006042203.39515.hselasky@c2i.net> User-Agent: Mutt/1.4.2.3i X-Virus-Scanned: clamav-milter 0.95.2 at skuns.kiev.zoral.com.ua X-Virus-Status: Clean X-Spam-Status: No, score=-2.7 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_20, DNS_FROM_OPENWHOIS autolearn=no version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on skuns.kiev.zoral.com.ua Cc: freebsd-hackers@freebsd.org Subject: Re: lib32 and Makefiles X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 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 Jun 2010 22:32:42 -0000 --ViugPjSMr9TemhdD Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Jun 04, 2010 at 10:03:39PM +0200, Hans Petter Selasky wrote: > Hi, >=20 > What is the recommended way to detect a lib32 build on FreeBSD 8/9 > from inside the Makefile? For the C code, the proper way is to #ifdef COMPAT_32BIT. I was not able to find a good way to determine this inside Makefile. Probably, looking for the presence of LIB32* variables (see src/Makefile.inc1) is the most satisfactory way for now. --ViugPjSMr9TemhdD Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (FreeBSD) iEYEARECAAYFAkwJfwAACgkQC3+MBN1Mb4ilkACfcqCq33i/umKnDyAzNRQ/8xC4 1ekAn0hWHomn1S8izy9Mo1g3Louc6z06 =vRS5 -----END PGP SIGNATURE----- --ViugPjSMr9TemhdD--