Re: MinGW Pike 7.8.866: the good, the bad, the ugly
Chris Angelico <[email protected]>
| Newsgroups | gmane.comp.lang.pike.user |
|---|---|
| Message-ID | <CAPTjJmqcgCWnJWQ-KBVmGPFYp3FHeXvQHKHiDd4bWQEb5EQo-A@mail.gmail.com> |
On Thu, Jul 10, 2014 at 3:39 AM, Chris Angelico <[email protected]> wrote: > At the moment, I'm looking at > getting 8.0 to build for Windows; it's largely working, although Hilfe > terminates immediately on startup for some reason. Still looking into > that too. Two patches to get 8.0 to work on MinGW, albeit with the above limitation still. Also, 7e27ad breaks things by introducing a circular dependency, which make resolves the wrong way; not sure what's happening there (it doesn't seem to cause problems on Linux, for instance), but reverting that commit results in a successful build. Including nettle-config.h should be perfectly safe, and it's in an NT-only file, so I doubt that can possibly break anything anywhere else (famous last words, though!). Linking with ole32 ought to be done already, but since it doesn't seem to be working, I added it; it's inside an "if Windows NT" check, so that ought to be safe too. ChrisA
0001-Include-nettle_config-before-nettle.h-to-have-define.patch
(text/x-patch, 656 B)
From 89a14f41784fac110e41806f849ea1814901518b Mon Sep 17 00:00:00 2001 From: Chris Angelico <[email protected]> Date: Wed, 9 Jul 2014 03:35:57 +1000 Subject: [PATCH 1/2] Include nettle_config before nettle.h to have defines available --- src/post_modules/Nettle/nt.cmod | 1 + 1 file changed, 1 insertion(+) diff --git a/src/post_modules/Nettle/nt.cmod b/src/post_modules/Nettle/nt.cmod index c92428b..6bacb43 100644 --- a/src/post_modules/Nettle/nt.cmod +++ b/src/post_modules/Nettle/nt.cmod @@ -11,6 +11,7 @@ #include "pike_macros.h" #include "stralloc.h" +#include "nettle_config.h" #include "nettle.h" #include <winerror.h> -- 1.7.10.4
0002-Link-with-ole32-when-on-Windows.patch
(text/x-patch, 647 B)
From 6202f0b514cc12f734d78abab4e55c095513e43f Mon Sep 17 00:00:00 2001 From: Chris Angelico <[email protected]> Date: Wed, 9 Jul 2014 03:35:25 +1000 Subject: [PATCH 2/2] Link with ole32 when on Windows --- src/configure.in | 1 + 1 file changed, 1 insertion(+) diff --git a/src/configure.in b/src/configure.in index 2648316..c59de9e 100644 --- a/src/configure.in +++ b/src/configure.in @@ -673,6 +673,7 @@ AC_MSG_RESULT($pike_cv_sys_os) if test "x$pike_cv_sys_os" = xWindows_NT; then PIKE_FUNCS_NEED_DECLS(yes) + LIBS="-lole32 $LIBS" fi AC_CHECK_HEADERS(stdlib.h string.h unistd.h sys/stat.h sys/types.h sys/errno.h) -- 1.7.10.4