summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Storsjö <[email protected]>2025-09-15 14:16:31 +0300
committerMartin Storsjö <[email protected]>2025-09-15 14:17:52 +0300
commit424d844534756c4c497675798412f73973ba9819 (patch)
treeec30e78240adc1cc2d2a499e4cf9cc1568a77bbe
parent16b8a7805b3c3895e53be5dd976f7649d0a86993 (diff)
configure: Make -Werror=partial-availability apply to all languages
This was missed in 0ce413af9cc8040095a6b714600d6a8dceaca514. This fixes proper detection of Objective C APIs (that are missing) if targeting older macOS versions, such as the check for AVCaptureSession.
-rwxr-xr-xconfigure2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure b/configure
index 73531a498a..23a958e38d 100755
--- a/configure
+++ b/configure
@@ -5957,7 +5957,7 @@ case $target_os in
enabled x86_32 && append SHFLAGS -Wl,-read_only_relocs,suppress
strip="${strip} -x"
add_ldflags -Wl,-dynamic,-search_paths_first
- check_cflags -Werror=partial-availability
+ check_allcflags -Werror=partial-availability
SLIBSUF=".dylib"
SLIBNAME_WITH_VERSION='$(SLIBPREF)$(FULLNAME).$(LIBVERSION)$(SLIBSUF)'
SLIBNAME_WITH_MAJOR='$(SLIBPREF)$(FULLNAME).$(LIBMAJOR)$(SLIBSUF)'