MinGW/MSYS开发环境Part 4:建构额外的工具

建构git

git是一个版本控制系统

建构跟安装git可以执行下面的命令:

wget -c http://www.kernel.org/pub/software/scm/git/git-1.7.3.tar.gz && \
tar zxf git-1.7.3.tar.gz && \
cd git-1.7.3 && \
./configure --prefix=$LOCALDESTDIR && \
make all doc && \
make install install-doc

git有很多专案会使用而且需要用来下载最新版的GtkGLExt开发版本。

建构wget

wget是一个从internet下载档案的工具

要建构wget我们要取代

建构跟安装wget,可以执行下面的命令:

# edit src/host.c
# comment out the line
#	/extern int h_errno;
#
# after configure: edit src/config.h
#	#undef HAVE_SYMLINK
#	#undef HAVE_USLEEP
#
# make fails to link the exe:
#	append -lws2_32 to the command
# (adding LDFLAGS to ./configure doesn't work)
#
cd $LOCALBUILDDIR && \
wget http://ftp.gnu.org/gnu/wget/wget-1.12.tar.bz2 && \
tar xjf wget-1.12.tar.bz2 && \
cd wget-1.12 && \
CPPFLAGS="$CPPFLAGS -DWINDOWS" ./configure --prefix=$LOCALDESTDIR --disable-iri && \
make && \
make install

Comments are closed.