diff options
author | Theodore Ts'o <tytso@mit.edu> | 2022-01-31 15:24:54 -0500 |
---|---|---|
committer | Eric Sandeen <sandeen@redhat.com> | 2022-01-31 15:24:54 -0500 |
commit | b3aba5752d11f2a01d79ca88fee9cd5ed3cf616a (patch) | |
tree | f6bc5ad0e36189eba51e1ed65bde096f217787b1 /growfs | |
parent | 0cdc68c3110411d7c3c8a0e3ad064a044fb61ee4 (diff) | |
download | xfsprogs-dev-b3aba5752d11f2a01d79ca88fee9cd5ed3cf616a.tar.gz |
xfsprogs: fix static build problems caused by liburcu
The liburcu library has a dependency on pthreads. Hence, in order for
static builds of xfsprogs to work, $(LIBPTHREAD) needs to appear
*after* $(LUBURCU) in LLDLIBS. Otherwise, static links of xfs_* will
fail due to undefined references of pthread_create, pthread_exit,
et. al.
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
Diffstat (limited to 'growfs')
-rw-r--r-- | growfs/Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/growfs/Makefile b/growfs/Makefile index 08601de77a..2f4cc66a76 100644 --- a/growfs/Makefile +++ b/growfs/Makefile @@ -9,8 +9,8 @@ LTCOMMAND = xfs_growfs CFILES = xfs_growfs.c -LLDLIBS = $(LIBXFS) $(LIBXCMD) $(LIBFROG) $(LIBUUID) $(LIBRT) $(LIBPTHREAD) \ - $(LIBURCU) +LLDLIBS = $(LIBXFS) $(LIBXCMD) $(LIBFROG) $(LIBUUID) $(LIBRT) $(LIBURCU) \ + $(LIBPTHREAD) ifeq ($(ENABLE_EDITLINE),yes) LLDLIBS += $(LIBEDITLINE) $(LIBTERMCAP) |