aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/x264/configure.patch
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/x264/configure.patch
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/x264/configure.patch')
-rw-r--r--vcpkg/ports/x264/configure.patch40
1 files changed, 40 insertions, 0 deletions
diff --git a/vcpkg/ports/x264/configure.patch b/vcpkg/ports/x264/configure.patch
new file mode 100644
index 0000000..788a1a5
--- /dev/null
+++ b/vcpkg/ports/x264/configure.patch
@@ -0,0 +1,40 @@
+diff --git a/configure b/configure
+index e242e73c..e0d1df76 100755
+--- a/configure
++++ b/configure
+@@ -1,4 +1,7 @@
+-#!/bin/bash
++#!/usr/bin/env bash
++
++export CFLAGS="${CPPFLAGS} ${CFLAGS}"
++test "${AS:-:}" = ":" && unset AS
+
+ if test x"$1" = x"-h" -o x"$1" = x"--help" ; then
+ cat <<EOF
+@@ -837,6 +840,7 @@ case $host_cpu in
+ AS="${AS-${SRCPATH}/tools/gas-preprocessor.pl -arch aarch64 -as-type armasm -- armasm64 -nologo}"
+ else
+ AS="${AS-${CC}}"
++ test "${AS}" = "${CC}" && ASFLAGS="${CPPFLAGS} ${ASFLAGS}"
+ fi
+ ;;
+ arm*)
+@@ -855,6 +859,7 @@ case $host_cpu in
+ AS="${AS-${SRCPATH}/tools/gas-preprocessor.pl -arch arm -as-type clang -force-thumb -- ${CC} -mimplicit-it=always}"
+ else
+ AS="${AS-${CC}}"
++ test "${AS}" = "${CC}" && ASFLAGS="${CPPFLAGS} ${ASFLAGS}"
+ fi
+ ;;
+ s390|s390x)
+@@ -1354,8 +1359,10 @@ if [ $SYS = WINDOWS -a $ARCH = X86 -a $compiler = GNU ] ; then
+ fi
+
+ if cc_check "stdio.h" "" "fseeko(stdin,0,0);" ; then
++ if cc_check "" "" "#if defined(__ANDROID_API__) && __ANDROID_API__ < 24\n#error\n#endif\n" ; then
+ define fseek fseeko
+ define ftell ftello
++ fi
+ elif cc_check "stdio.h" "" "fseeko64(stdin,0,0);" ; then
+ define fseek fseeko64
+ define ftell ftello64