Patchwork [03/81] Use CFLAGS from enviroment, ARCH_CFLAGS hasn't been defined yet

login
register
mail settings
Submitter Juan Quintela
Date Aug. 3, 2009, 12:45 p.m.
Message ID <d3c494d08efa3d774c0b270a0163a9f71b6e639b.1249301360.git.quintela@redhat.com>
Download mbox | patch
Permalink /patch/30503/
State Superseded
Headers show

Comments

Juan Quintela - Aug. 3, 2009, 12:45 p.m.
Signed-off-by: Juan Quintela <quintela@redhat.com>
---
 configure |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

Patch

diff --git a/configure b/configure
index c70da30..efd8c96 100755
--- a/configure
+++ b/configure
@@ -61,7 +61,7 @@  cat > $TMPC <<EOF
 int main(void) {}
 EOF

-if $cc $ARCH_CFLAGS -c -o $TMPO $TMPC > /dev/null 2> /dev/null ; then
+if $cc $CFLAGS -c -o $TMPO $TMPC > /dev/null 2> /dev/null ; then
   : C compiler works ok
 else
     echo "ERROR: \"$cc\" either does not exist or does not work"
@@ -75,7 +75,7 @@  cat > $TMPC <<EOF
 #endif
 int main(void) { return 0; }
 EOF
-  $cc $ARCH_CFLAGS -c -o $TMPO $TMPC > /dev/null 2> /dev/null
+  $cc $CFLAGS -c -o $TMPO $TMPC > /dev/null 2> /dev/null
 }

 if check_define __i386__ ; then