build: fix standalone ctdb build --with-systemd
authorDavid Disseldorp <ddiss@samba.org>
Mon, 5 Mar 2018 14:08:55 +0000 (15:08 +0100)
committerAndreas Schneider <asn@cryptomilk.org>
Mon, 5 Mar 2018 19:49:51 +0000 (20:49 +0100)
commitc59d5e11967b9b0afb16fcffc023c1437bf9ad21
tree00453a08857e61cc1849ab43dd3a850e1d2b5f2d
parentb4aa16b9edbd9fee9ec2e9cc9c925fbeb7281921
build: fix standalone ctdb build --with-systemd

For standalone ctdb builds, a samba-util-core dependency is added,
without corresponding systemd libraries, which are needed when
become_daemon.c is built --with-systemd. This results in:
  default/lib/util/become_daemon_20.o: In function `daemon_status':
  become_daemon.c:(.text+0x456): undefined reference to `sd_notifyf'
  collect2: error: ld returned 1 exit status

Fix this by moving the systemd library dependencies from samba-util to
samba-util-core, the become_daemon.c base build target.

Signed-off-by: David Disseldorp <ddiss@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date(master): Mon Mar  5 20:49:51 CET 2018 on sn-devel-144
lib/util/wscript_build