only use export syms if we do not do client

This commit is contained in:
Christian Grothoff
2008-11-23 09:28:26 +00:00
parent b3a3a53069
commit a01bd055ef
2 changed files with 3 additions and 5 deletions
+3 -2
View File
@@ -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)
@@ -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;