[x264-devel] configure: Check for -lshell32 before forcibly adding it into LDFLAGSCLI
Martin Storsjö
git at videolan.org
Mon May 22 00:02:06 CEST 2017
x264 | branch: master | Martin Storsjö <martin at martin.st> | Fri Mar 24 11:33:45 2017 +0200| [b22a5db3c481b10b4a6ec190978d97b377750a12] | committer: Henrik Gramner
configure: Check for -lshell32 before forcibly adding it into LDFLAGSCLI
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.
> http://git.videolan.org/gitweb.cgi/x264.git/?a=commit;h=b22a5db3c481b10b4a6ec190978d97b377750a12
---
configure | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/configure b/configure
index 5935bdb4..b1962f0e 100755
--- a/configure
+++ b/configure
@@ -633,7 +633,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.exe}"
fi
;;
More information about the x264-devel
mailing list