blob: b33fd9cb7009ba402885bb9edcc37ed670ee4e23 (
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
48
49
50
51
52
|
diff -ru enca-1.15/configure.ac patched/configure.ac
--- enca-1.15/configure.ac 2013-09-30 09:48:22.000000000 +0200
+++ patched/configure.ac 2014-03-30 14:34:59.632070945 +0200
@@ -39,13 +39,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
@@ -97,8 +99,17 @@
dnl And for gtk-doc
gtk_CHECK_GTK_DOC
-dnl Check for good random number sources
-AC_CHECK_FILES(/dev/random /dev/urandom /dev/srandom /dev/arandom)
+LIBENCA_LDFLAGS=""
+case "$host_os" in
+ mingw*)
+ echo "no random number sources when cross-compiling"
+ LIBENCA_LDFLAGS="-no-undefined ${wl}-no-undefined ${wl}-export-all-symbols" ;;
+ *)
+ dnl Check for good random number sources
+ AC_CHECK_FILES(/dev/random /dev/urandom /dev/srandom /dev/arandom) ;;
+esac
+AC_MSG_RESULT([$LIBENCA_LDFLAGS])
+AC_SUBST([LIBENCA_LDFLAGS])
dnl Dirty path hack. Helps some people with badly set up search paths.
if test "$prefix" = "NONE"; then
diff -ru enca-1.15/lib/Makefile.am patched/lib/Makefile.am
--- enca-1.15/lib/Makefile.am 2013-09-30 09:48:22.000000000 +0200
+++ patched/lib/Makefile.am 2014-03-30 14:33:54.664402842 +0200
@@ -7,7 +7,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 \
|