summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2016-11-03 14:14:12 +0200
committerMartin Storsjö <martin@martin.st>2016-11-04 21:37:57 +0200
commitd1ef1b9eaa45043ea5df5a004fb37243e05da61d (patch)
tree8c1e4d9df402e24b2cc3756f07e780f5e3bf8fa2
parent392caa65df3efa8b2d48a80f08a6af4892c61c08 (diff)
downloadffmpeg-streaming-d1ef1b9eaa45043ea5df5a004fb37243e05da61d.zip
ffmpeg-streaming-d1ef1b9eaa45043ea5df5a004fb37243e05da61d.tar.gz
configure: Silence lld-link when getting the version number
In recent lld-link versions, this command prints the version to stdout, but also prints an error to stderr: $ lld-link -flavor gnu --version LLD 4.0.0 (trunk 285641) lld-link: error: no input files lld-link: error: target emulation unknown: -m or at least one .o file required Signed-off-by: Martin Storsjö <martin@martin.st>
-rwxr-xr-xconfigure2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure b/configure
index 9264bb5..23be425 100755
--- a/configure
+++ b/configure
@@ -3291,7 +3291,7 @@ probe_cc(){
_type=lld-link
# The link.exe mode doesn't have a switch for getting the version,
# but we can force it back to gnu mode and get the version from there.
- _ident=$($_cc -flavor gnu --version)
+ _ident=$($_cc -flavor gnu --version 2>/dev/null)
_ld_o='-out:$@'
_flags_filter=msvc_flags
_ld_lib='lib%.a'
OpenPOWER on IntegriCloud