Commit 62e2d1b9 authored by Damien Fouilleul's avatar Damien Fouilleul

libvlc.dll: libtool fixes

parent 1345a357
...@@ -11,7 +11,7 @@ EXTRA_DIST = extras/COPYING modules/builtin.h.in libvlc.sym ...@@ -11,7 +11,7 @@ EXTRA_DIST = extras/COPYING modules/builtin.h.in libvlc.sym
BUILT_SOURCES = modules/builtin.h misc/revision.c BUILT_SOURCES = modules/builtin.h misc/revision.c
CLEANFILES = $(BUILT_SOURCES) CLEANFILES = $(BUILT_SOURCES)
MOSTLYCLEANFILES = $(hacklib_DATA) $(noinst_DATA) MOSTLYCLEANFILES = $(dist_dllimport_DATA) $(noinst_DATA)
TOOLBOX = srcdir=$(top_srcdir) builddir=$(top_builddir) $(top_srcdir)/toolbox TOOLBOX = srcdir=$(top_srcdir) builddir=$(top_builddir) $(top_srcdir)/toolbox
...@@ -151,31 +151,32 @@ libvlc_la_SOURCES += $(SOURCES_libvlc_getopt) ...@@ -151,31 +151,32 @@ libvlc_la_SOURCES += $(SOURCES_libvlc_getopt)
endif endif
if HAVE_WIN32 if HAVE_WIN32
# Überhack. Needs fixing. dllimportdir = $(libdir)
hacklibdir = $(libdir) dist_dllimport_DATA = libvlc.dll libvlc.dll.a
hacklib_DATA = libvlc.dll libvlc.dll.a
noinst_DATA = libvlc.def noinst_DATA = libvlc.def
endif endif
OBJECTS_libvlc_dll = $(libvlc_la_OBJECTS) $(libvlc_control_la_OBJECTS)
libvlc.dll.a libvlc.def: libvlc.dll libvlc.dll.a libvlc.def: libvlc.dll
$(DLLTOOL) -z libvlc.def -l libvlc.dll.a -D $< $(libvlc_a_OBJECTS) @objs=""; \
for s in $(OBJECTS_libvlc_dll); do \
objs="$$objs $$(dirname "$$s")/.libs/$$(basename $${s%.lo}).o" ; \
done ; \
echo $(DLLTOOL) --output-def libvlc.def --output-lib libvlc.dll.a -D $< $$objs ; \
$(DLLTOOL) --output-def libvlc.def --output-lib libvlc.dll.a -D $< $$objs
libvlc.dll: $(libvlc_la_OBJECTS) libvlc.dll: $(OBJECTS_libvlc_dll)
.la.dll: .la.dll:
@ldfl="`$(VLC_CONFIG) --libs plugin libvlc pic` $(INCLUDED_LIBINTL)" ; \ @ldfl="`$(VLC_CONFIG) --libs plugin libvlc pic` $(INCLUDED_LIBINTL)" ; \
objs="" ; \ objs="$^"; \
for s in $^; do \
test "$$s" = "$<" || \
objs="$$objs $$(dirname "$$s")/.libs/$$(basename $${s%.lo}).o" ; \
done ; \
case `$(VLC_CONFIG) --linkage libvlc` in \ case `$(VLC_CONFIG) --linkage libvlc` in \
c++) ld="$(CXXLINK)" ;; \ c++) ld="$(CXXLINK)" ;; \
c|*) ld="$(LINK)" ;; \ c|*) ld="$(LINK)" ;; \
esac ; \ esac ; \
echo $$ld $$objs$ldfl; \ echo $$ld $$objs $$ldfl; \
$$ld $$objs $$ldfl $$ld $$objs $$ldfl
@if test -f "$@.exe"; then mv -f "$@.exe" "$@"; fi
SOURCES_libvlc_beos = \ SOURCES_libvlc_beos = \
misc/beos_specific.cpp \ misc/beos_specific.cpp \
......
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