]> git.ipfire.org Git - thirdparty/systemd.git/commit
build-sys: link with librt if linking with libsd-daemon-int
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sat, 3 Aug 2013 14:18:21 +0000 (10:18 -0400)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sat, 3 Aug 2013 14:18:21 +0000 (10:18 -0400)
commit692ec7c998d5f889376686e4d83b696f1712e13e
treeb10d7991e897e7c85f3b7b6eb102fa16b470932f
parent7eb942c4086c563ca08f1b94c974d896eedb2e64
build-sys: link with librt if linking with libsd-daemon-int

In fba1ea0 'build: do not link everything with -lrt (and
therefore -pthread)' librt was removed from the list of
libraries. But libsd-daemon-internal also uses symbols from
librt and librt must thus be added everywhere where
libsd-daemon-interal is used, or otherwise linking might
fail:

/usr/bin/ld: ./.libs/libudev-core.a(sd-daemon.o): undefined reference to symbol 'mq_getattr@@GLIBC_2.3.4'
/usr/bin/ld: note: 'mq_getattr@@GLIBC_2.3.4' is defined in DSO /lib64/librt.so.1 so try adding it to the linker command line
Makefile.am