aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorJuan Quintela <quintela@redhat.com>2009-07-27 16:13:20 +0200
committerAnthony Liguori <aliguori@us.ibm.com>2009-07-27 14:09:23 -0500
commitb41af4ba44560ad0b2997c9a592fcd30bd0a91d0 (patch)
tree527a19ef03b2fca12a2b053337e735031c6bd15b /configure
parent4baae0acb833bd3c1e7b155685946251c5322b76 (diff)
simplify fdt libs selection
Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure9
1 files changed, 5 insertions, 4 deletions
diff --git a/configure b/configure
index 3c63c0d5cc..b64effcfb3 100755
--- a/configure
+++ b/configure
@@ -1257,11 +1257,12 @@ fi
##########################################
# fdt probe
if test "$fdt" = "yes" ; then
- fdt=no
- cat > $TMPC << EOF
+ fdt=no
+ fdt_libs="-lfdt"
+ cat > $TMPC << EOF
int main(void) { return 0; }
EOF
- if $cc $ARCH_CFLAGS -o $TMPE ${OS_CFLAGS} $TMPC -lfdt 2> /dev/null > /dev/null ; then
+ if $cc $ARCH_CFLAGS -o $TMPE ${OS_CFLAGS} $TMPC $fdt_libs 2> /dev/null > /dev/null ; then
fdt=yes
fi
fi
@@ -1711,7 +1712,7 @@ fi
if test "$fdt" = "yes" ; then
echo "CONFIG_FDT=y" >> $config_host_mak
echo "#define CONFIG_FDT 1" >> $config_host_h
- echo "FDT_LIBS=-lfdt" >> $config_host_mak
+ echo "FDT_LIBS=$fdt_libs" >> $config_host_mak
fi
# XXX: suppress that