* Disable CPU detection
@ 2015-05-17 3:47 Daniel Kasak
2015-05-17 21:15 ` Jay
0 siblings, 1 reply; 2+ messages in thread
From: Daniel Kasak @ 2015-05-17 3:47 UTC (permalink / raw)
To: libffi-discuss
Hi all.
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 ...
Thanks :)
Dan
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Disable CPU detection
2015-05-17 3:47 Disable CPU detection Daniel Kasak
@ 2015-05-17 21:15 ` Jay
0 siblings, 0 replies; 2+ messages in thread
From: Jay @ 2015-05-17 21:15 UTC (permalink / raw)
To: Daniel Kasak; +Cc: libffi-discuss
Can you set CFLAGS to empty or other at the start?
CFLAGS=... configure ...
This aspect of autoconf and such has always bothered me, as if every specific machine builds its own very specific binaries. But some amount of sniffing machine is useful.
- Jay
On May 16, 2015, at 8:47 PM, Daniel Kasak <d.j.kasak.dk@gmail.com> wrote:
> Hi all.
>
> 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 ...
>
> Thanks :)
>
> Dan
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-05-17 21:15 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-05-17 3:47 Disable CPU detection Daniel Kasak
2015-05-17 21:15 ` Jay
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).