From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28997 invoked by alias); 17 May 2015 21:15:56 -0000 Mailing-List: contact libffi-discuss-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libffi-discuss-owner@sourceware.org Received: (qmail 28984 invoked by uid 89); 17 May 2015 21:15:55 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.4 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-pd0-f181.google.com Received: from mail-pd0-f181.google.com (HELO mail-pd0-f181.google.com) (209.85.192.181) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Sun, 17 May 2015 21:15:53 +0000 Received: by pdfh10 with SMTP id h10so119098404pdf.3 for ; Sun, 17 May 2015 14:15:52 -0700 (PDT) X-Received: by 10.70.127.138 with SMTP id ng10mr38364439pdb.111.1431897352136; Sun, 17 May 2015 14:15:52 -0700 (PDT) Received: from [10.248.218.30] (61.sub-174-239-192.myvzw.com. [174.239.192.61]) by mx.google.com with ESMTPSA id eu5sm7896027pbb.44.2015.05.17.14.15.51 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 17 May 2015 14:15:51 -0700 (PDT) From: Jay X-Google-Original-From: Jay References: Mime-Version: 1.0 (1.0) In-Reply-To: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Message-Id: Cc: "libffi-discuss@sourceware.org" Subject: Re: Disable CPU detection Date: Sun, 17 May 2015 21:15:00 -0000 To: Daniel Kasak X-IsSubscribed: yes X-SW-Source: 2015/txt/msg00075.txt.bz2 Can you set CFLAGS to empty or other at the start?=20 CFLAGS=3D... configure ... This aspect of autoconf and such has always bothered me, as if every specif= ic machine builds its own very specific binaries. But some amount of sniffi= ng machine is useful. - Jay On May 16, 2015, at 8:47 PM, Daniel Kasak wrote: > Hi all. >=20 > I'm building some libraries for distribution on Windows ( shudder ), > using a Windows 7 VM. I see that the configure script for libffi > detects my CPU ( Opteron ) and sets up CFLAGS to match. Is there an > easy way of disabling this detection so I can safely redistribute to > people who don't have Opterons? For now, I've grepped for the > offending -march entries and manually edited then out ... >=20 > Thanks :) >=20 > Dan