[x264-devel] [PATCH 13/14] configure: Check for -lshell32 before forcifully adding it into LDFLAGSCLI

Martin Storsjö martin at martin.st
Fri Mar 24 10:33:45 CET 2017


When targeting the Windows Phone API subset, there is no shell32.lib.

When targeting Windows Phone/RT, the CLI itself won't be built, but
LDFLAGSCLI are included in all later cases of cc_check within configure.
Therefore only add -lshell32 there if it actually is usable.
---
 configure | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configure b/configure
index 15628c2..33df6dc 100755
--- a/configure
+++ b/configure
@@ -632,7 +632,7 @@ case $host_os in
         else
             SYS="WINDOWS"
             DEVNULL="NUL"
-            LDFLAGSCLI="$LDFLAGSCLI -lshell32"
+            cc_check "" "-lshell32" && LDFLAGSCLI="$LDFLAGSCLI -lshell32"
             [ $compiler = GNU ] && RC="${RC-${cross_prefix}windres}" || RC="${RC-rc}"
         fi
         ;;
-- 
2.7.4



More information about the x264-devel mailing list