[vlc-commits] configure: darwin: add -D_INTL_REDIRECT_MACROS to CPPFLAGS

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


vlc | branch: master | Marvin Scholz <epirat07 at gmail.com> | Wed Mar 11 02:13:14 2020 +0100| [7236a10498745206f85a47bebaacc8012c8d842f] | committer: Marvin Scholz

configure: darwin: add -D_INTL_REDIRECT_MACROS to CPPFLAGS

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

 configure.ac | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/configure.ac b/configure.ac
index 28ea44045e..eba2a92ff9 100644
--- a/configure.ac
+++ b/configure.ac
@@ -193,11 +193,10 @@ case "${host_os}" in
       ;;
     esac
 
-    CFLAGS="${CFLAGS} -D_INTL_REDIRECT_MACROS -std=gnu11"
+    AX_APPEND_FLAG([-D_INTL_REDIRECT_MACROS], [CPPFLAGS])
+    CFLAGS="${CFLAGS} -std=gnu11"
     CXX="${CXX} -stdlib=libc++ -std=c++11"
-    CXXFLAGS="${CXXFLAGS} -D_INTL_REDIRECT_MACROS"
-    CPPFLAGS="${CPPFLAGS}"
-    OBJCFLAGS="${OBJCFLAGS} -D_INTL_REDIRECT_MACROS -std=gnu11 -Werror=partial-availability"
+    OBJCFLAGS="${OBJCFLAGS} -std=gnu11 -Werror=partial-availability"
     LDFLAGS="${LDFLAGS} -Wl,-headerpad_max_install_names"
     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