Add a HOWTO about cross-compiling tinc for Windows under Linux.
[wiki] / examples / openssl-cross-compilation.diff
diff --git a/examples/openssl-cross-compilation.diff b/examples/openssl-cross-compilation.diff
new file mode 100644 (file)
index 0000000..cf33dec
--- /dev/null
@@ -0,0 +1,28 @@
+--- Configure.orig     2009-10-04 19:33:46.232068938 +0200
++++ Configure  2009-10-04 19:23:29.502125839 +0200
+@@ -1,4 +1,4 @@
+-#!/usr/local/bin/perl
++#!/usr/bin/perl
+ eval 'exec perl -S $0 ${1+"$@"}'
+     if $running_under_some_shell;
+ ##
+@@ -1059,7 +1059,7 @@
+ my $IsMK1MF=scalar grep /^$target$/,@MK1MF_Builds;
+-$IsMK1MF=1 if ($target eq "mingw" && $^O ne "cygwin" && !is_msys());
++#$IsMK1MF=1 if ($target eq "mingw" && $^O ne "cygwin" && !is_msys());
+ $no_shared = 0 if ($fipsdso && !$IsMK1MF);
+--- e_os2.h.orig       2009-10-04 19:33:58.297912010 +0200
++++ e_os2.h    2009-10-04 19:23:29.502125839 +0200
+@@ -262,7 +262,7 @@
+ */
+ #ifdef OPENSSL_EXPORT_VAR_AS_FUNCTION
+ # define OPENSSL_IMPLEMENT_GLOBAL(type,name)                       \
+-      extern type _hide_##name;                                    \
++      static type _hide_##name;                                    \
+       type *_shadow_##name(void) { return &_hide_##name; }         \
+       static type _hide_##name
+ # define OPENSSL_DECLARE_GLOBAL(type,name) type *_shadow_##name(void)