diff options
-rw-r--r-- | configure.ac | 2 | ||||
-rw-r--r-- | src/examples/Makefile.am | 10 | ||||
-rw-r--r-- | src/microhttpd/Makefile.am | 4 | ||||
-rw-r--r-- | src/testcurl/Makefile.am | 4 | ||||
-rw-r--r-- | src/testcurl/https/Makefile.am | 8 |
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]) | |||
82 | AC_CONFIG_FILES([src/microhttpd/microhttpd_dll_res.rc]) | 82 | AC_CONFIG_FILES([src/microhttpd/microhttpd_dll_res.rc]) |
83 | 83 | ||
84 | AX_PTHREAD(,[AC_MSG_ERROR([[Compiling libmicrohttpd requires pthread support]])]) | 84 | AX_PTHREAD(,[AC_MSG_ERROR([[Compiling libmicrohttpd requires pthread support]])]) |
85 | LIBS="$PTHREAD_LIBS $LIBS" | ||
86 | CFLAGS="$CFLAGS $PTHREAD_CFLAGS" | ||
87 | CC="$PTHREAD_CC" | 85 | CC="$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 | |||
42 | endif | 42 | endif |
43 | if HAVE_POSTPROCESSOR | 43 | if HAVE_POSTPROCESSOR |
44 | noinst_PROGRAMS += \ | 44 | noinst_PROGRAMS += \ |
45 | post_example | 45 | post_example |
46 | if HAVE_MAGIC | 46 | if HAVE_MAGIC |
47 | bin_PROGRAMS = \ | 47 | bin_PROGRAMS = \ |
48 | demo | 48 | demo |
49 | endif | 49 | endif |
50 | endif | 50 | endif |
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 | ||
71 | demo_SOURCES = \ | 71 | demo_SOURCES = \ |
72 | demo.c | 72 | demo.c |
73 | demo_CFLAGS = \ | ||
74 | $(PTHREAD_CFLAGS) $(AM_CFLAGS) | ||
73 | demo_LDADD = \ | 75 | demo_LDADD = \ |
74 | $(top_builddir)/src/microhttpd/libmicrohttpd.la \ | 76 | $(top_builddir)/src/microhttpd/libmicrohttpd.la \ |
75 | -lmagic | 77 | $(PTHREAD_LIBS) -lmagic |
76 | 78 | ||
77 | mhd2spdy_SOURCES = \ | 79 | mhd2spdy_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 = \ | |||
66 | libmicrohttpd_la_CPPFLAGS = \ | 66 | libmicrohttpd_la_CPPFLAGS = \ |
67 | $(AM_CPPFLAGS) \ | 67 | $(AM_CPPFLAGS) \ |
68 | -DBUILDING_MHD_LIB=1 | 68 | -DBUILDING_MHD_LIB=1 |
69 | libmicrohttpd_la_CFLAGS = \ | ||
70 | $(PTHREAD_CFLAGS) $(AM_CFLAGS) | ||
69 | libmicrohttpd_la_LDFLAGS = \ | 71 | libmicrohttpd_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@ |
73 | libmicrohttpd_la_LIBADD = \ | 75 | libmicrohttpd_la_LIBADD = \ |
74 | $(MHD_W32_LIB) | 76 | $(MHD_W32_LIB) $(PTHREAD_LIBS) |
75 | 77 | ||
76 | if HAVE_W32 | 78 | if HAVE_W32 |
77 | MHD_DLL_RES_SRC = microhttpd_dll_res.rc | 79 | MHD_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 | ||
94 | test_quiesce_SOURCES = \ | 94 | test_quiesce_SOURCES = \ |
95 | test_quiesce.c | 95 | test_quiesce.c |
96 | test_quiesce_CFLAGS = \ | ||
97 | $(PTHREAD_CFLAGS) $(AM_CFLAGS) | ||
96 | test_quiesce_LDADD = \ | 98 | test_quiesce_LDADD = \ |
97 | $(top_builddir)/src/microhttpd/libmicrohttpd.la \ | 99 | $(top_builddir)/src/microhttpd/libmicrohttpd.la \ |
98 | @LIBCURL@ | 100 | $(PTHREAD_LIBS) @LIBCURL@ |
99 | 101 | ||
100 | test_callback_SOURCES = \ | 102 | test_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 = \ | |||
59 | test_https_get_parallel_SOURCES = \ | 59 | test_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 |
62 | test_https_get_parallel_CFLAGS = \ | ||
63 | $(PTHREAD_CFLAGS) $(AM_CFLAGS) | ||
62 | test_https_get_parallel_LDADD = \ | 64 | test_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 | ||
67 | test_empty_response_SOURCES = \ | 69 | test_empty_response_SOURCES = \ |
68 | test_empty_response.c \ | 70 | test_empty_response.c \ |
@@ -75,10 +77,12 @@ test_empty_response_LDADD = \ | |||
75 | test_https_get_parallel_threads_SOURCES = \ | 77 | test_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 |
80 | test_https_get_parallel_threads_CFLAGS = \ | ||
81 | $(PTHREAD_CFLAGS) $(AM_CFLAGS) | ||
78 | test_https_get_parallel_threads_LDADD = \ | 82 | test_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 | ||
83 | test_tls_authentication_SOURCES = \ | 87 | test_tls_authentication_SOURCES = \ |
84 | test_tls_authentication.c \ | 88 | test_tls_authentication.c \ |