Add empty plug-in hooks to prevent their elimination by the linker
[babeltrace.git] / configure.ac
index 56255d0a98019ef2bf6614390fd37c7d10307778..b6741703207b7a4bce2df82ac9345cca423b713d 100644 (file)
@@ -97,7 +97,6 @@ AC_FUNC_MALLOC
 AC_FUNC_MKTIME
 AC_FUNC_MMAP
 AC_FUNC_REALLOC
-AC_FUNC_STRERROR_R
 AC_CHECK_FUNCS([ \
        atexit \
        dirfd \
@@ -129,6 +128,7 @@ AC_CHECK_FUNCS([ \
 
 MINGW32=no
 DEFAULT_ENABLE_DEBUG_INFO=yes
+LT_NO_UNDEFINED=""
 AS_CASE([$host_os],
   [solaris*|darwin*],
     [
@@ -137,10 +137,16 @@ AS_CASE([$host_os],
   [mingw*],
     [
        MINGW32=yes
+       LT_NO_UNDEFINED="-no-undefined"
+    ],
+  [cygwin*],
+    [
+       LT_NO_UNDEFINED="-no-undefined"
     ]
 )
 
 AM_CONDITIONAL([BABELTRACE_BUILD_WITH_MINGW], [test "x$MINGW32" = "xyes"])
+AC_SUBST(LT_NO_UNDEFINED)
 
 # Check what libraries are required on this platform to link sockets programs.
 AX_LIB_SOCKET_NSL
This page took 0.031886 seconds and 4 git commands to generate.