[vlc-commits] configure: darwin: use AX_APPEND_FLAG

Marvin Scholz git at videolan.org
Thu Mar 26 09:09:15 CET 2020


vlc | branch: master | Marvin Scholz <epirat07 at gmail.com> | Wed Mar 11 02:19:33 2020 +0100| [f8d5d938aa3344cd62e220ccaee64887fa1667d1] | committer: Marvin Scholz

configure: darwin: use AX_APPEND_FLAG

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f8d5d938aa3344cd62e220ccaee64887fa1667d1
---

 configure.ac | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/configure.ac b/configure.ac
index 7b5495816f..8a4adc8e84 100644
--- a/configure.ac
+++ b/configure.ac
@@ -174,9 +174,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)
@@ -195,8 +195,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])
 



More information about the vlc-commits mailing list