From df28cc51c00a958d25f7ebd7b5b0d7fb9af0b8e1 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Fri, 25 Nov 2005 01:19:31 +0000 Subject: [PATCH] Fix compilation with -pthread git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1034 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe --- avahi-common/Makefile.am | 6 +++--- avahi-compat-howl/Makefile.am | 8 ++++---- avahi-compat-libdns_sd/Makefile.am | 4 ++-- common/acx_pthread.m4 | 2 +- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/avahi-common/Makefile.am b/avahi-common/Makefile.am index ff436ae..f9fdef4 100644 --- a/avahi-common/Makefile.am +++ b/avahi-common/Makefile.am @@ -65,7 +65,7 @@ libavahi_common_la_SOURCES = \ rlist.h rlist.c libavahi_common_la_CFLAGS = $(AM_CFLAGS) $(PTHREAD_CFLAGS) -libavahi_common_la_LDFLAGS = $(AM_LDFLAGS) $(PTHREAD_LIBS) -export-dynamic -version-info $(LIBAVAHI_COMMON_VERSION_INFO) +libavahi_common_la_LDFLAGS = $(AM_LDFLAGS) $(PTHREAD_CFLAGS) $(PTHREAD_LIBS) -export-dynamic -version-info $(LIBAVAHI_COMMON_VERSION_INFO) strlst_test_SOURCES = \ strlst.c strlst.h \ @@ -93,13 +93,13 @@ watch_test_SOURCES = \ malloc.c malloc.h \ watch-test.c watch_test_CFLAGS = $(AM_CFLAGS) $(PTHREAD_CFLAGS) -watch_test_LDADD = $(AM_LDADD) $(PTHREAD_LIBS) +watch_test_LDADD = $(AM_LDADD) $(PTHREAD_LIBS) $(PTHREAD_CFLAGS) timeval_test_SOURCES = \ timeval.c timeval.h \ timeval-test.c timeval_test_CFLAGS = $(AM_CFLAGS) $(PTHREAD_CFLAGS) -timeval_test_LDADD = $(AM_LDADD) $(PTHREAD_LIBS) +timeval_test_LDADD = $(AM_LDADD) $(PTHREAD_LIBS) $(PTHREAD_CFLAGS) if HAVE_DBUS diff --git a/avahi-compat-howl/Makefile.am b/avahi-compat-howl/Makefile.am index f324bab..961be64 100644 --- a/avahi-compat-howl/Makefile.am +++ b/avahi-compat-howl/Makefile.am @@ -83,7 +83,7 @@ libhowl_la_SOURCES = \ text.c \ compat.c libhowl_la_CFLAGS = $(AM_CFLAGS) $(PTHREAD_CFLAGS) -I $(srcdir)/include -libhowl_la_LDFLAGS = $(AM_LDFLAGS) -export-dynamic -version-info $(LIBAVAHI_COMPAT_HOWL_VERSION_INFO) $(PTHREAD_LIBS) ../avahi-common/libavahi-common.la ../avahi-client/libavahi-client.la +libhowl_la_LDFLAGS = $(AM_LDFLAGS) -export-dynamic -version-info $(LIBAVAHI_COMPAT_HOWL_VERSION_INFO) $(PTHREAD_LIBS) $(PTHREAD_CFLAGS) ../avahi-common/libavahi-common.la ../avahi-client/libavahi-client.la address_test_SOURCES = \ $(HOWLHEADERS) \ @@ -91,7 +91,7 @@ address_test_SOURCES = \ address-test.c \ warn.c warn.h address_test_CFLAGS = $(AM_CFLAGS) $(PTHREAD_CFLAGS) -I $(srcdir)/include -address_test_LDADD = $(AM_LDADD) $(PTHREAD_LIBS) ../avahi-common/libavahi-common.la +address_test_LDADD = $(AM_LDADD) $(PTHREAD_LIBS) $(PTHREAD_CFLAGS) ../avahi-common/libavahi-common.la text_test_SOURCES = \ $(HOWLHEADERS) \ @@ -99,13 +99,13 @@ text_test_SOURCES = \ text-test.c \ warn.c warn.h text_test_CFLAGS = $(AM_CFLAGS) $(PTHREAD_CFLAGS) -I $(srcdir)/include -text_test_LDADD = $(AM_LDADD) $(PTHREAD_LIBS) ../avahi-common/libavahi-common.la +text_test_LDADD = $(AM_LDADD) $(PTHREAD_LIBS) $(PTHREAD_CFLAGS) ../avahi-common/libavahi-common.la browse_domain_test_SOURCES = \ $(HOWLHEADERS) \ browse-domain-test.c browse_domain_test_CFLAGS = $(AM_CFLAGS) $(PTHREAD_CFLAGS) -I $(srcdir)/include -browse_domain_test_LDADD = $(AM_LDADD) $(PTHREAD_LIBS) libhowl.la +browse_domain_test_LDADD = $(AM_LDADD) $(PTHREAD_LIBS) $(PTHREAD_CFLAGS) libhowl.la endif endif diff --git a/avahi-compat-libdns_sd/Makefile.am b/avahi-compat-libdns_sd/Makefile.am index acd723b..fc1421b 100644 --- a/avahi-compat-libdns_sd/Makefile.am +++ b/avahi-compat-libdns_sd/Makefile.am @@ -42,7 +42,7 @@ libdns_sd_la_SOURCES = \ unsupported.c \ warn.c warn.h libdns_sd_la_CFLAGS = $(AM_CFLAGS) $(PTHREAD_CFLAGS) -libdns_sd_la_LDFLAGS = $(AM_LDFLAGS) -export-dynamic -version-info $(LIBAVAHI_COMPAT_LIBDNS_SD_VERSION_INFO) $(PTHREAD_LIBS) ../avahi-common/libavahi-common.la ../avahi-client/libavahi-client.la +libdns_sd_la_LDFLAGS = $(AM_LDFLAGS) -export-dynamic -version-info $(LIBAVAHI_COMPAT_LIBDNS_SD_VERSION_INFO) $(PTHREAD_LIBS) $(PTHREAD_CFLAGS) ../avahi-common/libavahi-common.la ../avahi-client/libavahi-client.la txt_test_SOURCES = \ dns_sd.h \ @@ -50,7 +50,7 @@ txt_test_SOURCES = \ txt-test.c \ warn.c warn.h txt_test_CFLAGS = $(AM_CFLAGS) $(PTHREAD_CFLAGS) -txt_test_LDADD = $(AM_LDADD) $(PTHREAD_LIBS) ../avahi-common/libavahi-common.la +txt_test_LDADD = $(AM_LDADD) $(PTHREAD_LIBS) $(PTHREAD_CFLAGS) ../avahi-common/libavahi-common.la # You can test the compatibility layer by sticking in mDNSResponder's # dns-sd.c source here, naming it "libdns_sd-test.c" and running "make diff --git a/common/acx_pthread.m4 b/common/acx_pthread.m4 index eeda301..b7f692a 100644 --- a/common/acx_pthread.m4 +++ b/common/acx_pthread.m4 @@ -83,7 +83,7 @@ fi # which indicates that we try without any flags at all, and "pthread-config" # which is a program returning the flags for the Pth emulation library. -acx_pthread_flags="pthreads pthread none -Kthread -kthread lthread -pthread -pthreads -mthreads --thread-safe -mt pthread-config" +acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config" # The ordering *is* (sometimes) important. Some notes on the # individual items follow: -- 2.39.5