[w3m-dev 04148] link against boehm-gc shared library on cygwin.
WATANABE Katsuyuki <[email protected]> Tue, 15 Mar 2005 01:59:59 +0900
| Newsgroups | gmane.comp.web.w3m.devel |
|---|---|
| Message-ID | <[email protected]> |
$BEOn5$G$9!#(B
$B<{MW$,$"$k$N$+$h$/$o$+$j$^$;$s$,!"$H$j$"$($:1vDR$1$K$7$F$$$?(B
$B%M%?$NC*27$7$G$9!#(B
Cygwin $B4D6-$G!"(BDLL $B2=$7$?(B Boehm GC $B$X(B w3m $B$r%j%s%/$7$F$_$^$7$?!#(B
1. Boehm GC $B$r(B DLL $B2=(B
Cygwin $B4D6-$G(B boehm-gc $B$N(B DLL $B$r%S%k%I$9$k$K$O!"%=!<%9$KF1:-$5$l(B
$B$F$$$k(B libtool $B$r:G?7HG$X%"%C%W%G!<%H$7$F$d$kI,MW$,$"$j$^$9!#(B
1-a: $B0J2<$N$h$&$J%9%/%j%W%H$r<B9T$7$^$9(B:
*ref: http://www.cygwin.com/ml/cygwin/2003-04/msg01686.html
#! /bin/sh
echo "Copying libtool helper files ..."
autoupdate
rm -f ltmain.sh ltconfig
aclocal
libtoolize --force --copy --automake
ltfiles=/usr/autotool/devel/share
cp $ltfiles/aclocal/libtool.m4 .
cp $ltfiles/libtool/missing \
$ltfiles/libtool/install-sh \
$ltfiles/libtool/mkinstalldirs \
.
autoheader
echo "Creating configure ..."
autoconf
rm -rf autom4te*.cache
exit 0
1-b: $B$=$N8e!"(Bautoconf && ./configure --enable-threads=posix
--enable-shared$B$7$F!"@8@.$5$l$?(B Makefile $B$N(B LDFLAGS $B$K(B
-no-undefined $B$rB-$7$F(B make && make install$B!#(B
2. w3m $B$r%S%k%I(B
$B0J2<$N%Q%C%A$r$"$F!"(B./configure $B$7$F@8@.$5$l$?(B Makefile $B$N(B
CFLAGS $B$K(B -DGC_DLL $B$rDI2C$7$F%S%k%I$9$k$H!"(Bcyggc-1.dll $B$r(B
$B;H$&$h$&$K$J$j$^$9!#(B
diff -ur -X ignore.lst w3m-1.946/main.c w3m-1.946-1/main.c
--- w3m-1.946/main.c 2005-02-27 16:24:18.000000000 +0900
+++ w3m-1.946-1/main.c 2005-03-14 10:08:04.984375000 +0900
@@ -383,7 +383,13 @@
wc_ces CodePage;
#endif
#endif
+#if defined(__CYGWIN__)
+ extern int _data_start__[];
+ extern int _bss_end__[];
+ GC_add_roots(_data_start__, _bss_end__);
+#else
GC_init();
+#endif
#if ENABLE_NLS
setlocale(LC_ALL, "");
bindtextdomain(PACKAGE, LOCALEDIR);
$BMxE@$H$7$F$O!"(Bw3mbookmark, w3mhelperpanel $B$J$I$N%P%$%J%j$N(B
$B%5%$%:$,>.$5$/$J$kDxEY$G!"%M%?0J30$N$J$K$b$N$G$b$"$j$^$;$s!#(B
--
WATANABE Katsuyuki / $BEOn5>!G7(B
[email protected]