From owner-freebsd-questions@FreeBSD.ORG Wed Oct 24 21:05:46 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AB7D616A417 for ; Wed, 24 Oct 2007 21:05:46 +0000 (UTC) (envelope-from josh.carroll@gmail.com) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.181]) by mx1.freebsd.org (Postfix) with ESMTP id 640DB13C481 for ; Wed, 24 Oct 2007 21:05:46 +0000 (UTC) (envelope-from josh.carroll@gmail.com) Received: by py-out-1112.google.com with SMTP id u77so370889pyb for ; Wed, 24 Oct 2007 14:05:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=emLn9C+phz2NAPOVAERaN0HfgXtqICXg57iuWU92Oxk=; b=JDPXrwaPGYW/ZqRa7ygNMe13omAUYxjCPjNIQM6jXeBArqmGZnFlvMDq1Qi33WvAIc4jXo4O6FW4hZf9jN5llDVS7lFFC1616UWTA6eGp5R4xFWFsdJrbrsp56cuv0XN1wgaxADpjZZCAmvze7YByLsJKQuuIajZawtmZ3lCEwo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=RSOupa8YidzpZy2/+K/EDPu1nWI51PpsafAUpZpPDdQQFJnsT68JbzIglCPuoPuWKkKY0GCBWebUAhjlop81Tv5T5cd4HQA1PAtDhLf2ofmblfLNViNUvx7J2A0pqAPaak1I0xwrqb8VG9YIDyYFHMKmHW35vU8utfca6fxd3Tc= Received: by 10.35.92.18 with SMTP id u18mr1155209pyl.1193259935749; Wed, 24 Oct 2007 14:05:35 -0700 (PDT) Received: by 10.35.117.12 with HTTP; Wed, 24 Oct 2007 14:05:35 -0700 (PDT) Message-ID: <8cb6106e0710241405i36c99fd6yfd3661980cafb29b@mail.gmail.com> Date: Wed, 24 Oct 2007 17:05:35 -0400 From: "Josh Carroll" To: "Aryeh M. Friedman" In-Reply-To: <471FAFD4.5090500@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <471FAFD4.5090500@gmail.com> Cc: freebsd-questions@freebsd.org Subject: Re: forcing compilation/run time linking of lib32 on amd64 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: josh.carroll@gmail.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Oct 2007 21:05:46 -0000 > I am writing some demo code (for teaching C) and need to have the same > program run on a 32 bit machine and a 64 bit machine (showing that int's > are always word length)... I have 8-current amd64 how do I force it to > compile with 32 bit words? Add the following to your gcc command line: -m32 -B/usr/lib32 -L/usr/lib32 Regards, Josh