aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configure.ac2
-rw-r--r--src/examples/Makefile.am10
-rw-r--r--src/microhttpd/Makefile.am4
-rw-r--r--src/testcurl/Makefile.am4
-rw-r--r--src/testcurl/https/Makefile.am8
5 files changed, 18 insertions, 10 deletions
diff --git a/configure.ac b/configure.ac
index 3262df4a..a09b0b6d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -82,8 +82,6 @@ AC_SUBST([PACKAGE_VERSION_SUBMINOR])
82AC_CONFIG_FILES([src/microhttpd/microhttpd_dll_res.rc]) 82AC_CONFIG_FILES([src/microhttpd/microhttpd_dll_res.rc])
83 83
84AX_PTHREAD(,[AC_MSG_ERROR([[Compiling libmicrohttpd requires pthread support]])]) 84AX_PTHREAD(,[AC_MSG_ERROR([[Compiling libmicrohttpd requires pthread support]])])
85LIBS="$PTHREAD_LIBS $LIBS"
86CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
87CC="$PTHREAD_CC" 85CC="$PTHREAD_CC"
88 86
89# set GCC options 87# set GCC options
diff --git a/src/examples/Makefile.am b/src/examples/Makefile.am
index f8147bbf..563f16e4 100644
--- a/src/examples/Makefile.am
+++ b/src/examples/Makefile.am
@@ -42,10 +42,10 @@ noinst_PROGRAMS += https_fileserver_example
42endif 42endif
43if HAVE_POSTPROCESSOR 43if HAVE_POSTPROCESSOR
44noinst_PROGRAMS += \ 44noinst_PROGRAMS += \
45 post_example 45 post_example
46if HAVE_MAGIC 46if HAVE_MAGIC
47bin_PROGRAMS = \ 47bin_PROGRAMS = \
48 demo 48 demo
49endif 49endif
50endif 50endif
51 51
@@ -69,10 +69,12 @@ minimal_example_LDADD = \
69 $(top_builddir)/src/microhttpd/libmicrohttpd.la 69 $(top_builddir)/src/microhttpd/libmicrohttpd.la
70 70
71demo_SOURCES = \ 71demo_SOURCES = \
72 demo.c 72 demo.c
73demo_CFLAGS = \
74 $(PTHREAD_CFLAGS) $(AM_CFLAGS)
73demo_LDADD = \ 75demo_LDADD = \
74 $(top_builddir)/src/microhttpd/libmicrohttpd.la \ 76 $(top_builddir)/src/microhttpd/libmicrohttpd.la \
75 -lmagic 77 $(PTHREAD_LIBS) -lmagic
76 78
77mhd2spdy_SOURCES = \ 79mhd2spdy_SOURCES = \
78 mhd2spdy.c \ 80 mhd2spdy.c \
diff --git a/src/microhttpd/Makefile.am b/src/microhttpd/Makefile.am
index f9dec065..cf71b74e 100644
--- a/src/microhttpd/Makefile.am
+++ b/src/microhttpd/Makefile.am
@@ -66,12 +66,14 @@ libmicrohttpd_la_SOURCES = \
66libmicrohttpd_la_CPPFLAGS = \ 66libmicrohttpd_la_CPPFLAGS = \
67 $(AM_CPPFLAGS) \ 67 $(AM_CPPFLAGS) \
68 -DBUILDING_MHD_LIB=1 68 -DBUILDING_MHD_LIB=1
69libmicrohttpd_la_CFLAGS = \
70 $(PTHREAD_CFLAGS) $(AM_CFLAGS)
69libmicrohttpd_la_LDFLAGS = \ 71libmicrohttpd_la_LDFLAGS = \
70 $(MHD_LIB_LDFLAGS) \ 72 $(MHD_LIB_LDFLAGS) \
71 $(W32_MHD_LIB_LDFLAGS) \ 73 $(W32_MHD_LIB_LDFLAGS) \
72 -version-info @LIB_VERSION_CURRENT@:@LIB_VERSION_REVISION@:@LIB_VERSION_AGE@ 74 -version-info @LIB_VERSION_CURRENT@:@LIB_VERSION_REVISION@:@LIB_VERSION_AGE@
73libmicrohttpd_la_LIBADD = \ 75libmicrohttpd_la_LIBADD = \
74 $(MHD_W32_LIB) 76 $(MHD_W32_LIB) $(PTHREAD_LIBS)
75 77
76if HAVE_W32 78if HAVE_W32
77MHD_DLL_RES_SRC = microhttpd_dll_res.rc 79MHD_DLL_RES_SRC = microhttpd_dll_res.rc
diff --git a/src/testcurl/Makefile.am b/src/testcurl/Makefile.am
index 29aa2e9c..9e9d1ec5 100644
--- a/src/testcurl/Makefile.am
+++ b/src/testcurl/Makefile.am
@@ -93,9 +93,11 @@ test_get_LDADD = \
93 93
94test_quiesce_SOURCES = \ 94test_quiesce_SOURCES = \
95 test_quiesce.c 95 test_quiesce.c
96test_quiesce_CFLAGS = \
97 $(PTHREAD_CFLAGS) $(AM_CFLAGS)
96test_quiesce_LDADD = \ 98test_quiesce_LDADD = \
97 $(top_builddir)/src/microhttpd/libmicrohttpd.la \ 99 $(top_builddir)/src/microhttpd/libmicrohttpd.la \
98 @LIBCURL@ 100 $(PTHREAD_LIBS) @LIBCURL@
99 101
100test_callback_SOURCES = \ 102test_callback_SOURCES = \
101 test_callback.c 103 test_callback.c
diff --git a/src/testcurl/https/Makefile.am b/src/testcurl/https/Makefile.am
index 243d414a..7ea75200 100644
--- a/src/testcurl/https/Makefile.am
+++ b/src/testcurl/https/Makefile.am
@@ -59,10 +59,12 @@ test_tls_options_LDADD = \
59test_https_get_parallel_SOURCES = \ 59test_https_get_parallel_SOURCES = \
60 test_https_get_parallel.c \ 60 test_https_get_parallel.c \
61 tls_test_common.c 61 tls_test_common.c
62test_https_get_parallel_CFLAGS = \
63 $(PTHREAD_CFLAGS) $(AM_CFLAGS)
62test_https_get_parallel_LDADD = \ 64test_https_get_parallel_LDADD = \
63 $(top_builddir)/src/testcurl/libcurl_version_check.a \ 65 $(top_builddir)/src/testcurl/libcurl_version_check.a \
64 $(top_builddir)/src/microhttpd/libmicrohttpd.la \ 66 $(top_builddir)/src/microhttpd/libmicrohttpd.la \
65 @LIBCURL@ -lgnutls @LIBGCRYPT_LIBS@ 67 $(PTHREAD_LIBS) @LIBCURL@ -lgnutls @LIBGCRYPT_LIBS@
66 68
67test_empty_response_SOURCES = \ 69test_empty_response_SOURCES = \
68 test_empty_response.c \ 70 test_empty_response.c \
@@ -75,10 +77,12 @@ test_empty_response_LDADD = \
75test_https_get_parallel_threads_SOURCES = \ 77test_https_get_parallel_threads_SOURCES = \
76 test_https_get_parallel_threads.c \ 78 test_https_get_parallel_threads.c \
77 tls_test_common.c 79 tls_test_common.c
80test_https_get_parallel_threads_CFLAGS = \
81 $(PTHREAD_CFLAGS) $(AM_CFLAGS)
78test_https_get_parallel_threads_LDADD = \ 82test_https_get_parallel_threads_LDADD = \
79 $(top_builddir)/src/testcurl/libcurl_version_check.a \ 83 $(top_builddir)/src/testcurl/libcurl_version_check.a \
80 $(top_builddir)/src/microhttpd/libmicrohttpd.la \ 84 $(top_builddir)/src/microhttpd/libmicrohttpd.la \
81 @LIBCURL@ -lgnutls @LIBGCRYPT_LIBS@ 85 $(PTHREAD_LIBS) @LIBCURL@ -lgnutls @LIBGCRYPT_LIBS@
82 86
83test_tls_authentication_SOURCES = \ 87test_tls_authentication_SOURCES = \
84 test_tls_authentication.c \ 88 test_tls_authentication.c \