Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix build system uglienesses and broken make LIBS="-lasan" #4194

Open
wants to merge 4 commits into
base: release-11
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,8 @@ EXTRA_DIST = autogen.sh \

SUBDIRS = $(ARGP_STANDALONE_DIR) libglusterfs rpc api \
glusterfsd xlators $(FUSERMOUNT_SUBDIR) doc extras cli heal \
@SYNCDAEMON_SUBDIR@ @UMOUNTD_SUBDIR@ tools events
$(SYNCDAEMON_SUBDIR) $(UMOUNTD_SUBDIR) tools events

pkgconfigdir = @pkgconfigdir@
pkgconfig_DATA = glusterfs-api.pc libgfchangelog.pc

CLEANFILES = glusterfs-api.pc libgfchangelog.pc contrib/umountd/Makefile
Expand Down
3 changes: 1 addition & 2 deletions api/examples/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,4 @@
EXTRA_PROGRAMS = glfsxmp
glfsxmp_SOURCES = glfsxmp.c
glfsxmp_CFLAGS = $(GLFS_CFLAGS) -Wall
glfsxmp_LDADD = $(GLFS_LIBS) -lrt

glfsxmp_LDADD = $(GLFS_LIBS) $(rt_LIBS)
29 changes: 14 additions & 15 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -408,10 +408,6 @@ if test x$cross_compiling != xyes; then
fi
fi

dnl On some distributions '-ldl' isn't automatically added to LIBS
AC_CHECK_LIB([dl], [dlopen], [LIB_DL=-ldl])
AC_SUBST(LIB_DL)

AC_ARG_ENABLE([privport_tracking],
AS_HELP_STRING([--disable-privport_tracking],[Disable internal tracking of privileged ports.]))
TRACK_PRIVPORTS="yes"
Expand Down Expand Up @@ -574,13 +570,20 @@ fi

AC_CHECK_TOOL([LD],[ld])

AC_CHECK_LIB([crypto], [MD5], , AC_MSG_ERROR([OpenSSL crypto library is required to build glusterfs]))

AC_CHECK_LIB([pthread], [pthread_mutex_init], , AC_MSG_ERROR([Posix threads library is required to build glusterfs]))

AC_CHECK_FUNC([dlopen], [has_dlopen=yes], AC_CHECK_LIB([dl], [dlopen], , AC_MSG_ERROR([Dynamic linking library required to build glusterfs])))

AC_CHECK_LIB([intl], [gettext])
system_LIBS="$LIBS"
AC_SEARCH_LIBS([SHA256], [crypto], [crypto_LIBS="-lcrypto"; LIBS="$system_LIBS"])
AC_SUBST([crypto_LIBS])
AC_SEARCH_LIBS([pthread_mutex_init], [pthread], [pthread_LIBS="-lpthread"; LIBS="$system_LIBS"],
[AC_MSG_ERROR([Posix threads library is required to build glusterfs])])
AC_SUBST([pthread_LIBS])
AC_SEARCH_LIBS([dlopen], [dl], [dl_LIBS="-ldl"; LIBS="$system_LIBS"],
[AC_MSG_ERROR([Dynamic linking library required to build glusterfs])])
AC_SUBST([dl_LIBS])
AC_SEARCH_LIBS([clock_gettime], [rt], [rt_LIBS="-lrt"; LIBS="$system_LIBS"],
[AC_MSG_WARN([System doesn't have monotonic clock using contrib])])
AC_SUBST([rt_LIBS])
AC_SEARCH_LIBS([gettext], [intl], [intl_LIBS="-lintl"; LIBS="$system_LIBS"])
AC_SUBST([intl_LIBS])

AC_CHECK_HEADERS([sys/xattr.h])

Expand Down Expand Up @@ -1090,10 +1093,6 @@ fi
AC_SUBST(HAVE_FUTIMENS)
AC_SUBST(HAVE_FUTIMES)

dnl check for Monotonic clock
AC_CHECK_LIB([rt], [clock_gettime], ,
AC_MSG_WARN([System doesn't have monotonic clock using contrib]))

dnl check for argp, FreeBSD has the header in /usr/local/include
case $host_os in
*freebsd*)
Expand Down
2 changes: 1 addition & 1 deletion events/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ noinst_PYTHON = eventskeygen.py

if BUILD_EVENTS
install-data-hook:
$(INSTALL) -d -m 755 $(DESTDIR)@GLUSTERD_WORKDIR@/events
$(INSTALL) -d -m 755 $(DESTDIR)$(GLUSTERD_WORKDIR)/events
endif
1 change: 1 addition & 0 deletions extras/benchmarking/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
benchmarkingdir = $(docdir)/benchmarking

benchmarking_DATA = rdd.c glfs-bm.c README launch-script.sh local-script.sh
benchmarking_LDADD = $(pthread_LIBS)

EXTRA_DIST = rdd.c glfs-bm.c README launch-script.sh local-script.sh

Expand Down
2 changes: 1 addition & 1 deletion extras/cliutils/Makefile.am
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
EXTRA_DIST= cliutils.py __init__.py

cliutilsdir = @BUILD_PYTHON_SITE_PACKAGES@/gluster/cliutils
cliutilsdir = $(BUILD_PYTHON_SITE_PACKAGES)/gluster/cliutils
cliutils_PYTHON = cliutils.py __init__.py
2 changes: 1 addition & 1 deletion extras/command-completion/Makefile.am
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
bashcompdir = @bashcompdir@
bashcompdir = $(bashcompdir)
dist_bashcomp_DATA = gluster.bash
6 changes: 3 additions & 3 deletions extras/init.d/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ EXTRA_DIST = glusterd-Debian glusterd-FreeBSD glusterd-Redhat \

CLEANFILES =

INIT_DIR = @initdir@
SYSTEMD_DIR = @systemddir@
LAUNCHD_DIR = @launchddir@
INIT_DIR = $(initdir)
SYSTEMD_DIR = $(systemddir)
LAUNCHD_DIR = $(launchddir)

$(GF_DISTRIBUTION):
if WITH_SERVER
Expand Down
2 changes: 1 addition & 1 deletion extras/python/Makefile.am
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
if HAVE_PYTHON
# Install __init__.py into the Python site-packages area
pypkgdir = @BUILD_PYTHON_SITE_PACKAGES@/gluster
pypkgdir = $(BUILD_PYTHON_SITE_PACKAGES)/gluster
pypkg_PYTHON = __init__.py
endif

Expand Down
2 changes: 1 addition & 1 deletion glusterfsd/src/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ endif
glusterfsd_SOURCES = glusterfsd.c glusterfsd-mgmt.c
glusterfsd_LDADD = $(top_builddir)/libglusterfs/src/libglusterfs.la \
$(top_builddir)/rpc/rpc-lib/src/libgfrpc.la \
$(top_builddir)/rpc/xdr/src/libgfxdr.la $(GF_LDADD) $(LIB_DL)
$(top_builddir)/rpc/xdr/src/libgfxdr.la $(GF_LDADD) $(dl_LIBS) $(pthread_LIBS)
glusterfsd_LDFLAGS = $(GF_LDFLAGS)

gf_attach_SOURCES = gf_attach.c
Expand Down
3 changes: 2 additions & 1 deletion libglusterfs/src/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ if !HAVE_BACKTRACE
libglusterfs_la_CPPFLAGS += -I$(CONTRIBDIR)/libexecinfo
endif

libglusterfs_la_LIBADD = $(ZLIB_LIBS) $(MATH_LIB) $(UUID_LIBS) $(LIB_DL) \
libglusterfs_la_LIBADD = $(ZLIB_LIBS) $(MATH_LIB) $(UUID_LIBS) \
$(dl_LIBS) $(pthread_LIBS) $(rt_LIBS) \
$(URCU_LIBS) $(URCU_CDS_LIBS)
libglusterfs_la_LDFLAGS = -version-info $(LIBGLUSTERFS_LT_VERSION) $(GF_LDFLAGS) \
-export-symbols $(top_srcdir)/libglusterfs/src/libglusterfs.sym
Expand Down
2 changes: 1 addition & 1 deletion rpc/rpc-lib/src/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ libgfrpc_la_SOURCES = auth-unix.c rpcsvc-auth.c rpcsvc.c auth-null.c \
EXTRA_DIST = libgfrpc.sym

libgfrpc_la_LIBADD = $(top_builddir)/libglusterfs/src/libglusterfs.la \
$(top_builddir)/rpc/xdr/src/libgfxdr.la
$(top_builddir)/rpc/xdr/src/libgfxdr.la $(pthread_LIBS)
libgfrpc_la_LDFLAGS = -version-info $(LIBGFRPC_LT_VERSION) $(GF_LDFLAGS) \
-export-symbols $(top_srcdir)/rpc/rpc-lib/src/libgfrpc.sym

Expand Down
2 changes: 1 addition & 1 deletion rpc/rpc-transport/socket/src/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ socket_la_SOURCES = socket.c name.c
socket_la_LIBADD = $(top_builddir)/libglusterfs/src/libglusterfs.la \
$(top_builddir)/rpc/xdr/src/libgfxdr.la \
$(top_builddir)/rpc/rpc-lib/src/libgfrpc.la \
-lssl
$(crypto_LIBS) $(pthread_LIBS)

AM_CPPFLAGS = $(GF_CPPFLAGS) \
-I$(top_srcdir)/libglusterfs/src \
Expand Down
2 changes: 1 addition & 1 deletion tools/gfind_missing_files/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ gfindmissingfiles_PROGRAMS = gcrawler
endif

gcrawler_SOURCES = gcrawler.c
gcrawler_LDADD = $(top_builddir)/libglusterfs/src/libglusterfs.la
gcrawler_LDADD = $(top_builddir)/libglusterfs/src/libglusterfs.la $(pthread_LIBS)
gcrawler_LDFLAGS = $(GF_LDFLAGS)

AM_CPPFLAGS = $(GF_CPPFLAGS) -I$(top_srcdir)/libglusterfs/src
Expand Down
2 changes: 1 addition & 1 deletion xlators/cluster/afr/src/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ AFR_SELFHEAL_SOURCES = afr-self-heal-common.c afr-self-heal-data.c \

afr_la_LDFLAGS = -module $(GF_XLATOR_DEFAULT_LDFLAGS)
afr_la_SOURCES = $(afr_common_source) $(AFR_SELFHEAL_SOURCES) afr.c
afr_la_LIBADD = $(top_builddir)/libglusterfs/src/libglusterfs.la
afr_la_LIBADD = $(top_builddir)/libglusterfs/src/libglusterfs.la $(pthread_LIBS)

noinst_HEADERS = afr.h afr-transaction.h afr-inode-write.h afr-inode-read.h \
afr-dir-read.h afr-dir-write.h afr-self-heal.h afr-mem-types.h \
Expand Down
3 changes: 2 additions & 1 deletion xlators/features/bit-rot/src/bitd/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ AM_CPPFLAGS = $(GF_CPPFLAGS) -I$(top_srcdir)/libglusterfs/src \
bit_rot_la_SOURCES = bit-rot.c bit-rot-scrub.c bit-rot-ssm.c \
bit-rot-scrub-status.c
bit_rot_la_LIBADD = $(top_builddir)/libglusterfs/src/libglusterfs.la \
$(top_builddir)/xlators/features/changelog/lib/src/libgfchangelog.la
$(top_builddir)/xlators/features/changelog/lib/src/libgfchangelog.la \
$(crypto_LIBS) $(pthread_LIBS)

noinst_HEADERS = bit-rot.h bit-rot-scrub.h bit-rot-bitd-messages.h bit-rot-ssm.h \
bit-rot-scrub-status.h
Expand Down
2 changes: 1 addition & 1 deletion xlators/features/changelog/lib/src/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ libgfchangelog_la_CPPFLAGS = $(GF_CPPFLAGS) -D__USE_FILE_OFFSET64 -D__USE_LARGEF

libgfchangelog_la_LIBADD = $(top_builddir)/libglusterfs/src/libglusterfs.la \
$(top_builddir)/rpc/xdr/src/libgfxdr.la \
$(top_builddir)/rpc/rpc-lib/src/libgfrpc.la
$(top_builddir)/rpc/rpc-lib/src/libgfrpc.la $(pthread_LIBS)

libgfchangelog_la_LDFLAGS = $(GF_LDFLAGS) \
-version-info $(LIBGFCHANGELOG_LT_VERSION) \
Expand Down
2 changes: 1 addition & 1 deletion xlators/features/changelog/src/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ changelog_la_SOURCES = changelog.c changelog-rt.c changelog-helpers.c \
changelog-rpc-common.c changelog-ev-handle.c
changelog_la_LIBADD = $(top_builddir)/libglusterfs/src/libglusterfs.la \
$(top_builddir)/rpc/xdr/src/libgfxdr.la \
$(top_builddir)/rpc/rpc-lib/src/libgfrpc.la
$(top_builddir)/rpc/rpc-lib/src/libgfrpc.la $(pthread_LIBS)

AM_CPPFLAGS = $(GF_CPPFLAGS) -I$(top_srcdir)/libglusterfs/src \
-I$(top_srcdir)/rpc/xdr/src -I$(top_builddir)/rpc/xdr/src \
Expand Down
2 changes: 1 addition & 1 deletion xlators/features/cloudsync/src/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ BUILT_SOURCES = cloudsync-autogen-fops.h

cloudsync_la_LDFLAGS = -module $(GF_XLATOR_DEFAULT_LDFLAGS)

cloudsync_la_LIBADD = $(top_builddir)/libglusterfs/src/libglusterfs.la $(LIB_DL)
cloudsync_la_LIBADD = $(top_builddir)/libglusterfs/src/libglusterfs.la $(dl_LIBS)

AM_CPPFLAGS = $(GF_CPPFLAGS) -I$(top_srcdir)/libglusterfs/src -I$(top_srcdir)/rpc/xdr/src -I$(top_builddir)/rpc/xdr/src \
-DCS_PLUGINDIR=\"$(libdir)/glusterfs/$(PACKAGE_VERSION)/cloudsync-plugins\"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ csp_LTLIBRARIES = cloudsyncs3.la
cspdir = $(libdir)/glusterfs/$(PACKAGE_VERSION)/cloudsync-plugins

cloudsyncs3_la_SOURCES = libcloudsyncs3.c $(top_srcdir)/xlators/features/cloudsync/src/cloudsync-common.c
cloudsyncs3_la_LIBADD = $(top_builddir)/libglusterfs/src/libglusterfs.la
cloudsyncs3_la_LIBADD = $(top_builddir)/libglusterfs/src/libglusterfs.la -lcurl $(crypto_LIBS)
cloudsyncs3_la_LDFLAGS = -module -export-symbols $(top_srcdir)/xlators/features/cloudsync/src/cloudsync-plugins/src/cloudsyncs3/src/libcloudsyncs3.sym $(GF_XLATOR_LDFLAGS)
AM_CPPFLAGS = $(GF_CPPFLAGS) -I$(top_srcdir)/libglusterfs/src -I$(top_srcdir)/rpc/xdr/src -I$(top_builddir)/rpc/xdr/src -lcurlpp -lcryptopp
AM_CPPFLAGS = $(GF_CPPFLAGS) -I$(top_srcdir)/libglusterfs/src -I$(top_srcdir)/rpc/xdr/src -I$(top_builddir)/rpc/xdr/src -I$(top_srcdir)/xlators/features/cloudsync/src
noinst_HEADERS = libcloudsyncs3.h libcloudsyncs3-mem-types.h
AM_CFLAGS = -Wall -fno-strict-aliasing $(GF_CFLAGS) -lcurl -lcrypto -I$(top_srcdir)/xlators/features/cloudsync/src
AM_CFLAGS = -Wall -fno-strict-aliasing $(GF_CFLAGS)
CLEANFILES =

EXTRA_DIST = libcloudsyncs3.sym
2 changes: 1 addition & 1 deletion xlators/features/index/src/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ xlatordir = $(libdir)/glusterfs/$(PACKAGE_VERSION)/xlator/features
index_la_LDFLAGS = -module $(GF_XLATOR_DEFAULT_LDFLAGS)

index_la_SOURCES = index.c
index_la_LIBADD = $(top_builddir)/libglusterfs/src/libglusterfs.la
index_la_LIBADD = $(top_builddir)/libglusterfs/src/libglusterfs.la $(pthread_LIBS)

noinst_HEADERS = index.h index-mem-types.h index-messages.h

Expand Down
2 changes: 1 addition & 1 deletion xlators/features/leases/src/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ leases_la_LDFLAGS = -module $(GF_XLATOR_DEFAULT_LDFLAGS)

leases_la_SOURCES = leases.c leases-internal.c

leases_la_LIBADD = $(top_builddir)/libglusterfs/src/libglusterfs.la
leases_la_LIBADD = $(top_builddir)/libglusterfs/src/libglusterfs.la $(pthread_LIBS)

noinst_HEADERS = leases.h leases-mem-types.h leases-messages.h

Expand Down
2 changes: 1 addition & 1 deletion xlators/features/locks/src/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ locks_la_LDFLAGS = -module $(GF_XLATOR_DEFAULT_LDFLAGS)
locks_la_SOURCES = common.c posix.c entrylk.c inodelk.c reservelk.c \
clear.c

locks_la_LIBADD = $(top_builddir)/libglusterfs/src/libglusterfs.la
locks_la_LIBADD = $(top_builddir)/libglusterfs/src/libglusterfs.la $(pthread_LIBS)

noinst_HEADERS = locks.h common.h locks-mem-types.h clear.h pl-messages.h

Expand Down
2 changes: 1 addition & 1 deletion xlators/features/quota/src/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ quotad_la_LDFLAGS = -module $(GF_XLATOR_DEFAULT_LDFLAGS)
quota_la_SOURCES = quota.c quota-enforcer-client.c
quota_la_LIBADD = $(top_builddir)/libglusterfs/src/libglusterfs.la \
$(top_builddir)/rpc/xdr/src/libgfxdr.la \
$(top_builddir)/rpc/rpc-lib/src/libgfrpc.la
$(top_builddir)/rpc/rpc-lib/src/libgfrpc.la $(pthread_LIBS)

quotad_la_SOURCES = quotad.c quotad-helpers.c quotad-aggregator.c
quotad_la_LIBADD = $(top_builddir)/libglusterfs/src/libglusterfs.la \
Expand Down
2 changes: 1 addition & 1 deletion xlators/features/shard/src/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ shard_la_LDFLAGS = -module $(GF_XLATOR_DEFAULT_LDFLAGS)

shard_la_SOURCES = shard.c

shard_la_LIBADD = $(top_builddir)/libglusterfs/src/libglusterfs.la
shard_la_LIBADD = $(top_builddir)/libglusterfs/src/libglusterfs.la $(pthread_LIBS)

noinst_HEADERS = shard.h shard-mem-types.h shard-messages.h

Expand Down
3 changes: 2 additions & 1 deletion xlators/mgmt/glusterd/src/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ glusterd_la_SOURCES = glusterd.c glusterd-handler.c glusterd-sm.c \
glusterd_la_LIBADD = $(top_builddir)/libglusterfs/src/libglusterfs.la \
$(top_builddir)/rpc/xdr/src/libgfxdr.la \
$(top_builddir)/rpc/rpc-lib/src/libgfrpc.la \
$(XML_LIBS) -lcrypto $(URCU_LIBS) $(URCU_CDS_LIBS) $(LIB_DL) $(GF_XLATOR_MGNT_LIBADD)
$(XML_LIBS) $(crypto_LIBS) $(pthread_LIBS) $(URCU_LIBS) $(URCU_CDS_LIBS) \
$(dl_LIBS) $(GF_XLATOR_MGNT_LIBADD)

noinst_HEADERS = glusterd.h glusterd-utils.h glusterd-op-sm.h \
glusterd-sm.h glusterd-store.h glusterd-mem-types.h \
Expand Down
2 changes: 1 addition & 1 deletion xlators/mount/Makefile.am
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
SUBDIRS = @FUSE_CLIENT_SUBDIR@
SUBDIRS = $(FUSE_CLIENT_SUBDIR)

CLEANFILES =
3 changes: 2 additions & 1 deletion xlators/mount/fuse/src/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ fuse_la_SOURCES = fuse-helpers.c fuse-resolve.c fuse-bridge.c \
$(CONTRIBDIR)/fuse-lib/misc.c $(mount_source)

fuse_la_LDFLAGS = -module $(GF_XLATOR_DEFAULT_LDFLAGS)
fuse_la_LIBADD = $(top_builddir)/libglusterfs/src/libglusterfs.la $(GF_LDADD) @GF_FUSE_LDADD@
fuse_la_LIBADD = $(top_builddir)/libglusterfs/src/libglusterfs.la \
$(GF_LDADD) $(GF_FUSE_LDADD) $(pthread_LIBS)

AM_CPPFLAGS = $(GF_CPPFLAGS) -I$(top_srcdir)/libglusterfs/src \
-I$(top_srcdir)/rpc/xdr/src -I$(top_builddir)/rpc/xdr/src \
Expand Down
2 changes: 1 addition & 1 deletion xlators/mount/fuse/utils/Makefile.am
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
utildir = @mountutildir@
utildir = $(mountutildir)

if GF_LINUX_HOST_OS
util_SCRIPTS = mount.glusterfs
Expand Down
2 changes: 1 addition & 1 deletion xlators/performance/io-cache/src/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ xlatordir = $(libdir)/glusterfs/$(PACKAGE_VERSION)/xlator/performance
io_cache_la_LDFLAGS = -module $(GF_XLATOR_DEFAULT_LDFLAGS)

io_cache_la_SOURCES = io-cache.c page.c ioc-inode.c
io_cache_la_LIBADD = $(top_builddir)/libglusterfs/src/libglusterfs.la
io_cache_la_LIBADD = $(top_builddir)/libglusterfs/src/libglusterfs.la $(pthread_LIBS)

noinst_HEADERS = io-cache.h ioc-mem-types.h io-cache-messages.h

Expand Down
3 changes: 2 additions & 1 deletion xlators/performance/io-threads/src/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ xlatordir = $(libdir)/glusterfs/$(PACKAGE_VERSION)/xlator/performance
io_threads_la_LDFLAGS = -module $(GF_XLATOR_DEFAULT_LDFLAGS)

io_threads_la_SOURCES = io-threads.c
io_threads_la_LIBADD = $(top_builddir)/libglusterfs/src/libglusterfs.la
io_threads_la_LIBADD = $(top_builddir)/libglusterfs/src/libglusterfs.la \
$(pthread_LIBS) $(rt_LIBS)

noinst_HEADERS = io-threads.h iot-mem-types.h io-threads-messages.h

Expand Down
2 changes: 1 addition & 1 deletion xlators/performance/md-cache/src/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ xlatordir = $(libdir)/glusterfs/$(PACKAGE_VERSION)/xlator/performance
md_cache_la_LDFLAGS = -module $(GF_XLATOR_DEFAULT_LDFLAGS)

md_cache_la_SOURCES = md-cache.c
md_cache_la_LIBADD = $(top_builddir)/libglusterfs/src/libglusterfs.la
md_cache_la_LIBADD = $(top_builddir)/libglusterfs/src/libglusterfs.la $(pthread_LIBS)

noinst_HEADERS = md-cache-mem-types.h md-cache-messages.h

Expand Down
2 changes: 1 addition & 1 deletion xlators/performance/read-ahead/src/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ xlatordir = $(libdir)/glusterfs/$(PACKAGE_VERSION)/xlator/performance
read_ahead_la_LDFLAGS = -module $(GF_XLATOR_DEFAULT_LDFLAGS)

read_ahead_la_SOURCES = read-ahead.c page.c
read_ahead_la_LIBADD = $(top_builddir)/libglusterfs/src/libglusterfs.la
read_ahead_la_LIBADD = $(top_builddir)/libglusterfs/src/libglusterfs.la $(pthread_LIBS)

noinst_HEADERS = read-ahead.h read-ahead-mem-types.h read-ahead-messages.h

Expand Down
2 changes: 1 addition & 1 deletion xlators/protocol/client/src/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ client_la_LDFLAGS = -module $(GF_XLATOR_DEFAULT_LDFLAGS)

client_la_LIBADD = $(top_builddir)/libglusterfs/src/libglusterfs.la \
$(top_builddir)/rpc/rpc-lib/src/libgfrpc.la \
$(top_builddir)/rpc/xdr/src/libgfxdr.la
$(top_builddir)/rpc/xdr/src/libgfxdr.la $(pthread_LIBS)

client_la_SOURCES = client.c client-helpers.c client-rpc-fops_v2.c \
client-handshake.c client-callback.c client-common.c
Expand Down
2 changes: 1 addition & 1 deletion xlators/protocol/server/src/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ server_la_LDFLAGS = -module $(GF_XLATOR_DEFAULT_LDFLAGS)

server_la_LIBADD = $(top_builddir)/libglusterfs/src/libglusterfs.la \
$(top_builddir)/rpc/rpc-lib/src/libgfrpc.la \
$(top_builddir)/rpc/xdr/src/libgfxdr.la $(LIB_DL)
$(top_builddir)/rpc/xdr/src/libgfxdr.la $(dl_LIBS) $(pthread_LIBS)

server_la_SOURCES = server.c server-resolve.c server-helpers.c \
server-handshake.c authenticate.c server-common.c \
Expand Down
2 changes: 1 addition & 1 deletion xlators/storage/posix/src/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ posix_la_SOURCES = posix.c posix-helpers.c posix-handle.c posix-aio.c \
posix-gfid-path.c posix-entry-ops.c posix-inode-fd-ops.c \
posix-common.c posix-metadata.c posix-io-uring.c
posix_la_LIBADD = $(top_builddir)/libglusterfs/src/libglusterfs.la $(LIBAIO) \
$(LIBURING) $(ACL_LIBS)
$(LIBURING) $(ACL_LIBS) $(pthread_LIBS)

noinst_HEADERS = posix.h posix-mem-types.h posix-handle.h posix-aio.h \
posix-messages.h posix-gfid-path.h posix-inode-handle.h \
Expand Down