summaryrefslogtreecommitdiff
path: root/Makefile.plugins
diff options
context:
space:
mode:
authorJan Engelhardt <jengelh@inai.de>2018-11-25 10:20:07 +0100
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2018-11-26 11:24:34 +0200
commit069c65023ab64ac2aefcf6a4254c8b8fac2d9df0 (patch)
tree6377540874200f8e759d824cfa0ae2ff5d0184eb /Makefile.plugins
parentbfede2a0861ee7a14f023e7c31d7a59be1d52efc (diff)
downloadbluez-069c65023ab64ac2aefcf6a4254c8b8fac2d9df0.tar.gz
build: -l arguments to belong into LDADD/LIBADD not LDFLAGS
It is an error to put -l arguments into LDFLAGS, because the linker command line is order-sensitive and libs must appear in certain places. For this, automake has the LDADD/LIBADD.
Diffstat (limited to 'Makefile.plugins')
-rw-r--r--Makefile.plugins3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile.plugins b/Makefile.plugins
index 1c9919d71..d3cf5cab8 100644
--- a/Makefile.plugins
+++ b/Makefile.plugins
@@ -107,6 +107,7 @@ if SIXAXIS
plugin_LTLIBRARIES += plugins/sixaxis.la
plugins_sixaxis_la_SOURCES = plugins/sixaxis.c
plugins_sixaxis_la_LDFLAGS = $(AM_LDFLAGS) -module -avoid-version \
- -no-undefined $(UDEV_LIBS)
+ -no-undefined
+plugins_sixaxis_la_LIBADD = $(UDEV_LIBS)
plugins_sixaxis_la_CFLAGS = $(AM_CFLAGS) -fvisibility=hidden $(UDEV_CFLAGS)
endif