[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Chicken-users] Fix for MinGW build
From: |
Sergey Khorev |
Subject: |
[Chicken-users] Fix for MinGW build |
Date: |
Fri, 16 Dec 2005 16:13:30 +0300 |
Breaking my previous statement, here is a path to fix compilation in MinGW +
MSYS environment because I've decided to do MinGW work step-by-step rather than
preparing all-in-one super patch
-------------------------------------------------------------------------------------------------
--- old-chicken/Makefile.am Fri Dec 16 16:16:31 2005
+++ new-chicken/Makefile.am Fri Dec 16 16:16:31 2005
@@ -223,8 +223,8 @@
lib_LTLIBRARIES = libchicken.la libuchicken.la
if IS_MINGW
-chickenlibsources = extras.c match-support.c lolevel.c tinyclos.c utils.c
tcp.c pcre.c posixwin.c stub.c
-chickenulibsources = uextras.c umatch-support.c ulolevel.c utinyclos.c
uutils.c utcp.c upcre.c uposixwin.c stub.c
+chickenlibsources = extras.c match-support.c lolevel.c tinyclos.c utils.c
tcp.c pregexp.c posixwin.c stub.c
+chickenulibsources = uextras.c umatch-support.c ulolevel.c utinyclos.c
uutils.c utcp.c upregexp.c uposixwin.c stub.c
else
if USE_PCRE
chickenlibsources = extras.c match-support.c lolevel.c tinyclos.c utils.c
tcp.c pcre.c posix.c stub.c
--- old-chicken/README Fri Dec 16 16:16:31 2005
+++ new-chicken/README Fri Dec 16 16:16:31 2005
@@ -291,19 +291,22 @@
C:/chicken-1.66 ... spaces in the path to the existing
CHICKEN installation will cause problems)
- Sergey Khorev reported how to build Chicken under MinGW with support
for shared libraries:
+ Sergey Khorev reported how to build Chicken under MinGW with support
+ for shared libraries with some hacking involved:
- "Meanwhile I built Chicken with shared libs on MinGW. There is some
- hacking though. For those interested:
-
- 1) ./configure
- 2) edit Makefile to set BOOTSTRAP_PATH
- 3) edit libtool, change 'deplibs_check_method' value to "pass_all" (it
- seems that libtool tries to be too smart, giving stupid results).
- 4) mkdir $MINGWDIR/lib/.libs;
- cp $MINGWDIR/lib/libws2_32.a $MINGWDIR/lib/.libs
+ 1) Install MinGW and MSYS
+ 2) Don't use rxvt (default MSYS shortcut), better run MSYS's shell
using command
+ sh --login -i
+ 3) ./configure
+ 4) edit Makefile to set BOOTSTRAP_PATH
+ 5) patch libtool with
+ sed -e 's/\(deplibs_check_method=\).*/\1"pass_all"/' libtool >
libtool.new
+ cp libtool.new libtool
+ (it seems that libtool tries to be too smart, giving stupid results).
+ 6) mkdir $MINGWDIR/lib/.libs;
+ cp $MINGWDIR/lib/libws2_32.a $MINGWDIR/lib/.libs/libws2_32.dll.a
where MINGWDIR is the where MinGW is installed
- 5) make, make install, enjoy"
+ 7) make, make install, enjoy
CMake also supports MinGW, so you might try that instead.
-------------------------------------------------------------------------------------------------
- [Chicken-users] Questions on changing Chicken runtime and some other stuff, Sergey Khorev, 2005/12/16
- Re: [Chicken-users] Questions on changing Chicken runtime and some other stuff, felix winkelmann, 2005/12/16
- Re: [Chicken-users] Questions on changing Chicken runtime and some other stuff, Thomas Chust, 2005/12/16
- Re: [Chicken-users] Questions on changing Chicken runtime and some other stuff, felix winkelmann, 2005/12/19
- Re[2]: [Chicken-users] Questions on changing Chicken runtime and some other stuff, Sergey Khorev, 2005/12/19
- Re: [Chicken-users] Questions on changing Chicken runtime and some other stuff, John Cowan, 2005/12/19
- Re: [Chicken-users] Questions on changing Chicken runtime and some other stuff, felix winkelmann, 2005/12/20
- Re[2]: [Chicken-users] Questions on changing Chicken runtime and some other stuff, Sergey Khorev, 2005/12/20
- Re: Re[2]: [Chicken-users] Questions on changing Chicken runtime and some other stuff, felix winkelmann, 2005/12/20
- Re: Re[2]: [Chicken-users] Questions on changing Chicken runtime and some other stuff, John Cowan, 2005/12/20