blob: 6c09870d96a416b01a4c60a08c483548759aee7f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
diff -ru enca-1.18/configure.ac patched/configure.ac
--- enca-1.18/configure.ac 2016-01-07 09:40:26.000000000 +0100
+++ patched/configure.ac 2016-03-20 09:56:42.073076423 +0100
@@ -38,13 +38,15 @@
AC_GNU_SOURCE
AC_AIX
AC_ISC_POSIX
-AC_PROG_LIBTOOL
+#AC_PROG_LIBTOOL
AC_PROG_CC
AM_PROG_CC_C_O
AC_PROG_INSTALL
AC_PROG_LN_S
AC_PATH_PROG(MKTEMP_PROG, mktemp)
+LT_INIT
+
dnl With GCC, be paranoiac. It should compile really cleanly.
dnl Except -Wno-sign-compare, but older gcc's don't know it.
if test "$GCC" = yes; then
@@ -96,6 +98,14 @@
dnl And for gtk-doc
gtk_CHECK_GTK_DOC
+LIBENCA_LDFLAGS=""
+case "$host_os" in
+ mingw*)
+ LIBENCA_LDFLAGS="-no-undefined ${wl}-no-undefined ${wl}-export-all-symbols" ;;
+esac
+AC_MSG_RESULT([$LIBENCA_LDFLAGS])
+AC_SUBST([LIBENCA_LDFLAGS])
+
dnl Checks for libraries.
ye_CHECK_LIBM
diff -ru enca-1.18/lib/Makefile.am patched/lib/Makefile.am
--- enca-1.18/lib/Makefile.am 2016-01-04 19:12:05.000000000 +0100
+++ patched/lib/Makefile.am 2016-03-20 09:53:54.120087567 +0100
@@ -6,7 +6,7 @@
# Any iface change C++: 0: A
# Adding ifaces C: R: A++
# Changing ifaces C: R: 0
-libenca_la_LDFLAGS = -version-info 5:1:5
+libenca_la_LDFLAGS = @LIBENCA_LDFLAGS@ -version-info 5:1:5
libenca_la_SOURCES = \
common.c \
ctype.c \
|