Skip to contentSkip to conversation

configure: Fix wrong stderr redirection

PATCH Applied Stefan Weil 3 participants 3 messages Mar 1, 2010 – Mar 9, 2010

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 configure: Fix wrong stderr redirection

---
 configure |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
configure +2 -2
index dfe3e42..a14aba7 100755
@@ -1091,8 +1091,8 @@ EOF
     # static link with sdl ? (note: sdl.pc's --static --libs is broken)
     if test "$sdl" = "yes" -a "$static" = "yes" ; then
       if test $? = 0 && echo $sdl_libs | grep -- -laa > /dev/null; then
-         sdl_libs="$sdl_libs `aalib-config --static-libs >2 /dev/null`"
-         sdl_cflags="$sdl_cflags `aalib-config --cflags >2 /dev/null`"
+         sdl_libs="$sdl_libs `aalib-config --static-libs 2>/dev/null`"
+         sdl_cflags="$sdl_cflags `aalib-config --cflags 2>/dev/null`"
       fi
       if compile_prog "$sdl_cflags" "$sdl_libs" ; then
 	:
Signature · 1 line
1.6.6.1
Acked-by on v1 1/1
#1 lore raw
Quoted 1 line · Stefan Weil

Ouch. good catch.

Quoted 19 lines
---
 configure |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
configure +2 -2
index dfe3e42..a14aba7 100755
@@ -1091,8 +1091,8 @@ EOF
     # static link with sdl ? (note: sdl.pc's --static --libs is broken)
     if test "$sdl" = "yes" -a "$static" = "yes" ; then
       if test $? = 0 && echo $sdl_libs | grep -- -laa > /dev/null; then
-         sdl_libs="$sdl_libs `aalib-config --static-libs >2 /dev/null`"
-         sdl_cflags="$sdl_cflags `aalib-config --cflags >2 /dev/null`"
+         sdl_libs="$sdl_libs `aalib-config --static-libs 2>/dev/null`"
+         sdl_cflags="$sdl_cflags `aalib-config --cflags 2>/dev/null`"
       fi
       if compile_prog "$sdl_cflags" "$sdl_libs" ; then
 	:
#2 lore raw
In reply to Stefan Weil
Quoted 2 lines · Stefan Weil

Applied. Thanks.

Regards,

Anthony Liguori

Quoted 20 lines
---
  configure |    4 ++--
  1 files changed, 2 insertions(+), 2 deletions(-)
configure +2 -2
index dfe3e42..a14aba7 100755
@@ -1091,8 +1091,8 @@ EOF
      # static link with sdl ? (note: sdl.pc's --static --libs is broken)
      if test "$sdl" = "yes" -a "$static" = "yes" ; then
        if test $? = 0&&  echo $sdl_libs | grep -- -laa>  /dev/null; then
-         sdl_libs="$sdl_libs `aalib-config --static-libs>2 /dev/null`"
-         sdl_cflags="$sdl_cflags `aalib-config --cflags>2 /dev/null`"
+         sdl_libs="$sdl_libs `aalib-config --static-libs 2>/dev/null`"
+         sdl_cflags="$sdl_cflags `aalib-config --cflags 2>/dev/null`"
        fi
        if compile_prog "$sdl_cflags" "$sdl_libs" ; then
  	: