[vlc-devel] [PATCH 13/14] configure: darwin: use AX_APPEND_FLAG
Marvin Scholz
epirat07 at gmail.com
Wed Mar 11 13:37:34 CET 2020
---
configure.ac | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/configure.ac b/configure.ac
index 8deec9be9f..eb26668297 100644
--- a/configure.ac
+++ b/configure.ac
@@ -150,9 +150,9 @@ case "${host_os}" in
SYS=darwin
dnl Workaround possible Xcode 11 bug
- CFLAGS="${CFLAGS} -fno-stack-check"
- CXXFLAGS="${CXXFLAGS} -fno-stack-check"
- OBJCFLAGS="${OBJCFLAGS} -fno-stack-check"
+ AX_APPEND_FLAG([-fno-stack-check], [CFLAGS])
+ AX_APPEND_FLAG([-fno-stack-check], [CXXFLAGS])
+ AX_APPEND_FLAG([-fno-stack-check], [OBJCFLAGS])
case "${host_cpu}" in
i?86)
@@ -171,8 +171,9 @@ case "${host_os}" in
AX_APPEND_FLAG([-D_INTL_REDIRECT_MACROS], [CPPFLAGS])
AX_APPEND_FLAG([-stdlib=libc++], [CXXFLAGS])
- LDFLAGS="${LDFLAGS} -Wl,-headerpad_max_install_names"
- OBJCFLAGS="${OBJCFLAGS} -Werror=partial-availability"
+ AX_APPEND_FLAG([-Werror=partial-availability], [OBJCFLAGS])
+ AX_APPEND_FLAG([-Wl,-headerpad_max_install_names], [LDFLAGS])
+
VLC_ADD_LIBS([libvlc vlc],[-Wl,-undefined,dynamic_lookup,-framework,AppKit])
VLC_ADD_LIBS([libvlccore],[-Wl,-framework,CoreFoundation,-framework,CoreServices])
--
2.21.1 (Apple Git-122.3)
More information about the vlc-devel
mailing list