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

Complete flags factorization

parent 41ce29d5
......@@ -25,7 +25,7 @@ AM_LDFLAGS = -rpath '$(libvlcdir)' \
-avoid-version -module -no-undefined \
-shrext $(LIBEXT) \
`$(VLC_CONFIG) --ldflags plugin $@`
AM_LIBADD = $(LTLIBVLC)
AM_LIBADD = `$(VLC_CONFIG) -libs plugin $@` $(LTLIBVLC)
if HAVE_COMPILER_EXPORT
AM_LDFLAGS += -export-dynamic
......
......@@ -46,13 +46,13 @@ EOF
# The ${mod} plugin
lib${mod}_plugin_la_SOURCES = \$(SOURCES_${mod})
nodist_lib${mod}_plugin_la_SOURCES = \$(nodist_SOURCES_${mod})
# Force per-target objects:
lib${mod}_plugin_la_CFLAGS = \$(AM_CFLAGS)
lib${mod}_plugin_la_CXXFLAGS = \$(AM_CXXFLAGS)
lib${mod}_plugin_la_OBJCFLAGS = \$(AM_OBJCFLAGS)
lib${mod}_plugin_la_LIBADD = \$(AM_LIBADD) \\
\`\$(VLC_CONFIG) -libs plugin ${mod}\`
# Automake does not understand \`...\` very well inside LIBADD...
lib${mod}_plugin_la_DEPENDENCIES = \$(AM_LIBADD)
# Set LIBADD and DEPENDENCIES manually:
lib${mod}_plugin_la_LIBADD = \$(AM_LIBADD)
lib${mod}_plugin_la_DEPENDENCIES =
EOF
done
......
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