libmicrohttpd

HTTP/1.x server C library (MHD 1.x, stable)
Log | Files | Refs | Submodules | README | LICENSE

commit a01bd055ef3f1ccc26ff4f1cb0fee53fda96752d
parent b3a3a530691aa8416c36308cec13aa6d0dba1510
Author: Christian Grothoff <christian@grothoff.org>
Date:   Sun, 23 Nov 2008 09:28:26 +0000

only use export syms if we do not do client

Diffstat:
Mconfigure.ac | 5+++--
Msrc/testcurl/https/tls_daemon_options_test.c | 3---
2 files changed, 3 insertions(+), 5 deletions(-)

diff --git a/configure.ac b/configure.ac @@ -243,6 +243,8 @@ AC_MSG_RESULT($enable_https) AM_CONDITIONAL(ENABLE_HTTPS, test "$enable_https" = "yes") +MHD_LIB_LDFLAGS="-export-dynamic -no-undefined" + # optional: compile TLS client side code [only for test running] ? AC_MSG_CHECKING(whether to compile TLS client side code) AC_ARG_ENABLE(client-side, @@ -255,6 +257,7 @@ if test "$enable_client_side" = "no" then AC_DEFINE([MHD_DEBUG_TLS],[0],[Compile client side code. This will enable running some test cases.]) MSG_CLIENT_SIDE="disabled. running some test cases won't be possible" + MHD_LIB_LDFLAGS="$MHD_LIB_LDFLAGS -export-symbols \$(srcdir)/EXPORT.sym" else AC_DEFINE([MHD_DEBUG_TLS],[1],[Compile client side code. This will enable running some test cases.]) MSG_CLIENT_SIDE="enabled" @@ -274,8 +277,6 @@ AC_ARG_ENABLE([coverage], AS_HELP_STRING([--enable-coverage], AM_CONDITIONAL([USE_COVERAGE], [test "x$use_gcov" = "xyes"]) -MHD_LIB_LDFLAGS="-export-dynamic -no-undefined" -MHD_LIB_LDFLAGS="$MHD_LIB_LDFLAGS -export-symbols \$(srcdir)/EXPORT.sym" AC_SUBST(MHD_LIB_LDFLAGS) diff --git a/src/testcurl/https/tls_daemon_options_test.c b/src/testcurl/https/tls_daemon_options_test.c @@ -42,7 +42,6 @@ #include "tls_test_keys.h" -const int DEBUG_GNUTLS_LOG_LEVEL = 0; const char *test_file_name = "https_test_file"; const char test_file_data[] = "Hello World\n"; @@ -437,8 +436,6 @@ main (int argc, char *const *argv) int daemon_flags = MHD_USE_THREAD_PER_CONNECTION | MHD_USE_SSL | MHD_USE_DEBUG; - MHD_gtls_global_set_log_level (DEBUG_GNUTLS_LOG_LEVEL); - if (curl_check_version (MHD_REQ_CURL_VERSION)) { return -1;