diff mbox series

[FFmpeg-devel] configure: Filter -Wl, linker flags out for msvc compilation

Message ID CAB0OVGoWMmsfRJ=qXKaEjJfmojtFa-Zew+NJ0mvO8eG3mZkv_w@mail.gmail.com
State Accepted
Headers show
Series [FFmpeg-devel] configure: Filter -Wl, linker flags out for msvc compilation | expand

Checks

Context Check Description
andriy/ffmpeg-patchwork success Make fate finished

Commit Message

Carl Eugen Hoyos April 1, 2020, 2:59 p.m. UTC
Hi!

Attached patch silences a few warnings when compiling with cl.exe or
clang-cl.exe.
Or are there any working options?

Please comment, Carl Eugen

Comments

Carl Eugen Hoyos April 3, 2020, 8:01 p.m. UTC | #1
Am Mi., 1. Apr. 2020 um 16:59 Uhr schrieb Carl Eugen Hoyos <ceffmpeg@gmail.com>:

> Attached patch silences a few warnings when compiling with cl.exe or
> clang-cl.exe.
> Or are there any working options?

I will push this if there are no objections.

Carl Eugen
Carl Eugen Hoyos April 4, 2020, 9:29 p.m. UTC | #2
Am Fr., 3. Apr. 2020 um 22:01 Uhr schrieb Carl Eugen Hoyos <ceffmpeg@gmail.com>:
>
> Am Mi., 1. Apr. 2020 um 16:59 Uhr schrieb Carl Eugen Hoyos <ceffmpeg@gmail.com>:
>
> > Attached patch silences a few warnings when compiling with cl.exe or
> > clang-cl.exe.
> > Or are there any working options?
>
> I will push this if there are no objections.

Patch applied.

Carl Eugen
diff mbox series

Patch

From c1c8a1aad6651e9316863b582912e66231b89924 Mon Sep 17 00:00:00 2001
From: Carl Eugen Hoyos <ceffmpeg@gmail.com>
Date: Wed, 1 Apr 2020 16:57:40 +0200
Subject: [PATCH] configure: Filter -Wl, linker flags out for msvc compilation.

---
 configure | 1 +
 1 file changed, 1 insertion(+)

diff --git a/configure b/configure
index 21827eeb45..a0ecb2a374 100755
--- a/configure
+++ b/configure
@@ -4438,6 +4438,7 @@  msvc_common_flags(){
             -l*)                  echo ${flag#-l}.lib ;;
             -LARGEADDRESSAWARE)   echo $flag ;;
             -L*)                  echo -libpath:${flag#-L} ;;
+            -Wl,*)                ;;
             *)                    echo $flag ;;
         esac
     done
-- 
2.24.1