* Makefile.am: using C++ linkage for vlc under OS X and BeOS.
authorSam Hocevar <sam@videolan.org>
Wed, 25 Jun 2003 14:41:57 +0000 (14:41 +0000)
committerSam Hocevar <sam@videolan.org>
Wed, 25 Jun 2003 14:41:57 +0000 (14:41 +0000)
Makefile.am

index f8ee99d..755b07f 100644 (file)
@@ -462,7 +462,15 @@ DEPENDENCIES_vlc = lib/libvlc.a $(L_builtin) $(DATA_win32_rc) $(LIB_intl)
 
 vlc$(EXEEXT): $(vlc_OBJECTS) $(DEPENDENCIES_vlc)
        @rm -f $(srcdir)/vlc$(EXEEXT)
+if HAVE_BEOS
+       $(CXXLINK) $(vlc_LDFLAGS) $(vlc_OBJECTS) $(vlc_LDADD) $(LIBS)
+else
+if HAVE_DARWIN
+       $(CXXLINK) $(vlc_LDFLAGS) $(vlc_OBJECTS) $(vlc_LDADD) $(LIBS)
+else
        $(LINK) $(vlc_LDFLAGS) $(vlc_OBJECTS) $(vlc_LDADD) $(LIBS)
+endif
+endif
 
 if HAVE_BEOS
        xres -o $@ $(srcdir)/share/vlc_beos.rsrc