Commit b5b707f0 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Really fix libintl linking

parent 1b3784c1
...@@ -216,7 +216,7 @@ LIB_libvlc = src/libvlc.a ...@@ -216,7 +216,7 @@ LIB_libvlc = src/libvlc.a
endif endif
vlc_LDFLAGS = `$(VLC_CONFIG) --libs vlc builtin` $(vlc_WORKAROUNDLDFLAGS) vlc_LDFLAGS = `$(VLC_CONFIG) --libs vlc builtin` $(vlc_WORKAROUNDLDFLAGS)
vlc_LDADD = $(LIB_libvlc) $(DATA_win32_rc) $(LIB_intl) vlc_LDADD = $(LIB_libvlc) $(DATA_win32_rc) $(INCLUDED_LIBINTL)
vlc_CFLAGS = `$(VLC_CONFIG) --cflags vlc` vlc_CFLAGS = `$(VLC_CONFIG) --cflags vlc`
# We use DEPENDENCIES_vlc instead of vlc_DEPENDENCIES because of an # We use DEPENDENCIES_vlc instead of vlc_DEPENDENCIES because of an
......
...@@ -290,10 +290,12 @@ AM_GNU_GETTEXT ...@@ -290,10 +290,12 @@ AM_GNU_GETTEXT
if test "${nls_cv_force_use_gnu_gettext}" = "yes"; then if test "${nls_cv_force_use_gnu_gettext}" = "yes"; then
AC_DEFINE(HAVE_INCLUDED_GETTEXT, 1, Define if we use the local libintl) AC_DEFINE(HAVE_INCLUDED_GETTEXT, 1, Define if we use the local libintl)
INCLUDES="${INCLUDES} -I\$(top_builddir)/intl" INCLUDES="${INCLUDES} -I\$(top_builddir)/intl"
INCLUDED_LIBINTL="${LIBINTL}"
else else
VLC_ADD_LDFLAGS([vlc],[${LIBINTL}]) VLC_ADD_LDFLAGS([vlc],[${LIBINTL}])
INCLUDED_LIBINTL=
fi fi
AM_CONDITIONAL(BUILD_INTL, test "${nls_cv_force_use_gnu_gettext}" = "yes") AC_SUBST(INCLUDED_LIBINTL)
XGETTEXT="${XGETTEXT} --keyword=_NS --keyword=_ANS" XGETTEXT="${XGETTEXT} --keyword=_NS --keyword=_ANS"
dnl dnl
......
...@@ -5,8 +5,6 @@ ...@@ -5,8 +5,6 @@
NULL = NULL =
SUBDIRS = SUBDIRS =
LIBINTL = @LIBINTL@
EXTRA_DIST = extras/COPYING misc/modules_builtin.h.in EXTRA_DIST = extras/COPYING misc/modules_builtin.h.in
BUILT_SOURCES = $(DISTCLEANFILES) $(CLEANFILES) BUILT_SOURCES = $(DISTCLEANFILES) $(CLEANFILES)
...@@ -135,13 +133,11 @@ libvlc_a_SOURCES = $(SOURCES_libvlc) ...@@ -135,13 +133,11 @@ libvlc_a_SOURCES = $(SOURCES_libvlc)
libvlc_a_CFLAGS = `$(VLC_CONFIG) --cflags vlc` libvlc_a_CFLAGS = `$(VLC_CONFIG) --cflags vlc`
libvlc_a_CXXFLAGS = `$(VLC_CONFIG) --cxxflags vlc` libvlc_a_CXXFLAGS = `$(VLC_CONFIG) --cxxflags vlc`
libvlc_a_OBJCFLAGS = `$(VLC_CONFIG) --objcflags vlc` libvlc_a_OBJCFLAGS = `$(VLC_CONFIG) --objcflags vlc`
libvlc_a_LIBADD = $(LIBINTL)
libvlc_pic_a_SOURCES = $(SOURCES_libvlc) libvlc_pic_a_SOURCES = $(SOURCES_libvlc)
libvlc_pic_a_CFLAGS = `$(VLC_CONFIG) --cflags vlc pic` libvlc_pic_a_CFLAGS = `$(VLC_CONFIG) --cflags vlc pic`
libvlc_pic_a_CXXFLAGS = `$(VLC_CONFIG) --cxxflags vlc pic` libvlc_pic_a_CXXFLAGS = `$(VLC_CONFIG) --cxxflags vlc pic`
libvlc_pic_a_OBJCFLAGS = `$(VLC_CONFIG) --objcflags vlc pic` libvlc_pic_a_OBJCFLAGS = `$(VLC_CONFIG) --objcflags vlc pic`
libvlc_pic_a_LIBADD = $(LIBINTL)
if HAVE_BEOS if HAVE_BEOS
OPT_SOURCES_libvlc_beos = $(SOURCES_libvlc_beos) OPT_SOURCES_libvlc_beos = $(SOURCES_libvlc_beos)
...@@ -173,7 +169,7 @@ endif ...@@ -173,7 +169,7 @@ endif
endif endif
libvlc$(LIBEXT): $(OBJECTS_libvlc_so) libvlc$(LIBEXT): $(OBJECTS_libvlc_so)
@ldfl="`$(VLC_CONFIG) --libs plugin vlc $(pic)`" ; \ @ldfl="`$(VLC_CONFIG) --libs plugin vlc $(pic)` $(INCLUDED_LIBINTL)" ; \
case `$(VLC_CONFIG) --linkage vlc` in \ case `$(VLC_CONFIG) --linkage vlc` in \
c++) ld="$(CXXLINK)" ;; \ c++) ld="$(CXXLINK)" ;; \
objc) ld="$(OBJCLINK)" ;; \ objc) ld="$(OBJCLINK)" ;; \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment