[issue22981] Use CFLAGS when extracting multiarch

2016-07-12 Thread Martin Panter

Martin Panter added the comment:

Why do you set CFLAGS=-m32? When I cross-compile a 32-bit Python on a 64-bit 
host, I set CC="gcc -m32" instead. (Otherwise, I would have to specify 
LDFLAGS="-m32" as well.)

--
components: +Build
nosy: +martin.panter

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22981] Use CFLAGS when extracting multiarch

2014-12-02 Thread Antoine Pitrou

New submission from Antoine Pitrou:

This patch fixes MULTIARCH computation when using CFLAGS=-m32:

diff --git a/configure b/configure
--- a/configure
+++ b/configure
@@ -5402,7 +5402,7 @@ hp*|HP*)
 esac;;
 esac
 
-MULTIARCH=$($CC --print-multiarch 2/dev/null)
+MULTIARCH=$($CC $CFLAGS --print-multiarch 2/dev/null)
 
 
 
diff --git a/configure.ac b/configure.ac
--- a/configure.ac
+++ b/configure.ac
@@ -788,7 +788,7 @@ hp*|HP*)
 esac;;
 esac
 
-MULTIARCH=$($CC --print-multiarch 2/dev/null)
+MULTIARCH=$($CC $CFLAGS --print-multiarch 2/dev/null)
 AC_SUBST(MULTIARCH)

--
messages: 232013
nosy: barry, doko, pitrou
priority: normal
severity: normal
status: open
title: Use CFLAGS when extracting multiarch
type: enhancement
versions: Python 3.5

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22981
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com