tools/xenstore: fix linking libxenstore with ldl
authorJuergen Gross <jgross@suse.com>
Fri, 23 Mar 2018 07:42:53 +0000 (08:42 +0100)
committerWei Liu <wei.liu2@citrix.com>
Fri, 23 Mar 2018 16:27:42 +0000 (16:27 +0000)
commit1a373194922bc73ab4113eb4d5550e5dc922782b
tree6093d43e84b09daea7cf26b56c7fe8ba16944634
parent738301591ccb663e7d87f431cdda3d5c9d31ab97
tools/xenstore: fix linking libxenstore with ldl

Commit 448c03b3cbe1487 ("tools/xenstore: try to get minimum thread
stack size for watch thread") added a dependency to libdl to
libxenstore. Unfortunately the way it was added requires now all
users of libxenstore to specify "-ldl" when linking. This can be
avoided by linking libxenstore.so specifying "-ldl" as a trailing
option. So use APPEND_LDFLAGS instead of LDFLAGS for adding the
"-ldl" option when linking libxenstore.so.

Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Doug Goldstein <cardoe@cardoe.com>
Tested-by: Doug Goldstein <cardoe@cardoe.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
tools/xenstore/Makefile