ffmpeg/ffbuild
Martin Storsjö 4767a711c1
ffbuild: Avoid using the --preprocessor argument to windres
Instead use --preprocessor-arg; in binutils 2.36, the --preprocessor
flag was changed so that it no longer accepts a string containing
multiple arguments, but the whole --preprocessor argument is
treated as the path to the preprocessor executable (where the path
can contain spaces).

It's currently unclear whether this behaviour will stay or if it
is going to be reverted in the future, see discussion at [1]. Just
to be safe, avoid using the --preprocessor argument. Don't redeclare
the full preprocessing command, but just add the $(CC_DEPFLAGS) options.

Based on a patch by Kyle Schwartz.

[1] https://sourceware.org/bugzilla/show_bug.cgi?id=27594

Signed-off-by: Martin Storsjö <martin@martin.st>
2025-02-27 09:02:21 -05:00
..
.gitignore Merge commit '92db508307' 2017-05-04 19:59:30 -03:00
arch.mak build: Generalize yasm/nasm-related variable names 2017-06-21 17:00:29 -03:00
common.mak ffbuild: Avoid using the --preprocessor argument to windres 2025-02-27 09:02:21 -05:00
library.mak build: prevent SDL2 from polluting global cflags and extralibs 2017-10-09 21:41:11 -03:00
libversion.sh build: remove --enable-raise-major configure option 2017-05-17 22:52:59 -03:00
pkgconfig_generate.sh Merge commit '92db508307' 2017-05-04 19:59:30 -03:00
version.sh Merge commit '11a9320de5' 2017-05-03 16:49:12 +02:00