[vlc-devel] [PATCH 10/14] configure: darwin: add stdlib arg to CXXFLAGS

Marvin Scholz epirat07 at gmail.com
Wed Mar 11 13:37:31 CET 2020


---
 configure.ac | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index c6b51f88d9..988fc45126 100644
--- a/configure.ac
+++ b/configure.ac
@@ -170,8 +170,9 @@ case "${host_os}" in
     esac
 
     AX_APPEND_FLAG([-D_INTL_REDIRECT_MACROS], [CPPFLAGS])
+    AX_APPEND_FLAG([-stdlib=libc++], [CXXFLAGS])
     CFLAGS="${CFLAGS} -std=gnu11"
-    CXX="${CXX} -stdlib=libc++ -std=c++11"
+    CXX="${CXX} -std=c++11"
     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])
-- 
2.21.1 (Apple Git-122.3)



More information about the vlc-devel mailing list