more fixes to make Yap DLLs work with cygwin
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@409 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
This commit is contained in:
parent
a5ce067f96
commit
889e39aa71
34
docs/yap.tex
34
docs/yap.tex
@ -649,14 +649,13 @@ Be careful. At least for some versions of @code{GCC}, compiling with
|
||||
@item WIN32: The cygwin environment is our suggested approach. The
|
||||
CygWin environment is available from the URL:
|
||||
|
||||
|
||||
@code{http://sourceware.cygnus.com}
|
||||
|
||||
@noindent
|
||||
and mirrors. Yap should compile under cygwin 20.1 but we suggest using
|
||||
the newer 1.1.1 (April Release), which has a more complete
|
||||
implementation of the WIN32 API and uses GCC2.95.2 instead of egcs. The
|
||||
compilation steps under the cygwin shell are as follows:
|
||||
the newer 1.1.1 or recent, which has a more complete implementation of
|
||||
the WIN32 API and uses GCC2.95.2 instead of egcs. The compilation
|
||||
steps under the cygwin shell are as follows:
|
||||
|
||||
@example
|
||||
mkdir cyg
|
||||
@ -666,11 +665,13 @@ make
|
||||
make install
|
||||
@end example
|
||||
|
||||
By default, Yap will use the @code{-mno-cygwin} option to disable the
|
||||
use of the cygwin dll and to enables the mingw32 subsystem. Yap does not
|
||||
need the cygwin dll. It instead accesses the system's @code{CRTDLL.DLL}
|
||||
@code{C} run time library supplied with Win32 platforms through the
|
||||
mingw32 interface.
|
||||
By default, Yap will use the @code{--enable-cygwin=no} option to
|
||||
disable the use of the cygwin dll and to enable the mingw32 subsystem
|
||||
instead. Yap thus will not need the cygwin dll. It instead accesses
|
||||
the system's @code{CRTDLL.DLL} @code{C} run time library supplied with
|
||||
Win32 platforms through the mingw32 interface. Note that some older
|
||||
WIN95 systems may not have @code{CRTDLL.DLL}, in this case it should
|
||||
be sufficient to import the file from a newer WIN95 or WIN98 machine.
|
||||
|
||||
You should check the default installation path which is set to
|
||||
@code{/PROGRA~1/Yap} in the standard Makefile. This string will usually
|
||||
@ -678,6 +679,21 @@ be expanded into @code{c:\Program Files\Yap} by Windows.
|
||||
|
||||
The cygwin environment does not provide @t{gm}. You can fecth a dll for
|
||||
the @t{gmp} library from @url{http://www.sf.net/projects/mingwrep}.
|
||||
|
||||
It is also possible to configure Yap to be a part of the cygwin
|
||||
environment. In this case you should use:
|
||||
@example
|
||||
mkdir cyg
|
||||
$YAPSRC/configure --enable-coroutining \\
|
||||
--enable-max-performance \\
|
||||
--enable-cygwin=yes
|
||||
make
|
||||
make install
|
||||
@end example
|
||||
Yap will then compile using the cygwin library. You can use Yap from a
|
||||
cygwin console, or as a standalone application as long as it can fin
|
||||
@code{cygwin1.dll} in its path.
|
||||
|
||||
@end table
|
||||
|
||||
@node Compiling Under Visual C++, Tuning for SGI cc, Tuning for GCC, Machine Options
|
||||
|
@ -83,7 +83,7 @@ random.dll: $(OBJS)
|
||||
install: all
|
||||
$(INSTALL_PROGRAM) $(SOBJS) $(DESTDIR)$(LIBDIR)
|
||||
|
||||
install_mingw32: dll
|
||||
install_win32: dll
|
||||
$(INSTALL_PROGRAM) -m 755 random.dll $(LIBDIR)/random.dll
|
||||
|
||||
clean:
|
||||
|
@ -107,7 +107,7 @@ regexp.dll: $(OBJS)
|
||||
install: all
|
||||
$(INSTALL_PROGRAM) $(SOBJS) $(DESTDIR)$(LIBDIR)
|
||||
|
||||
install_mingw32: dll
|
||||
install_win32: dll
|
||||
$(INSTALL_PROGRAM) -m 755 regexp.dll $(LIBDIR)/regexp.dll
|
||||
|
||||
clean:
|
||||
|
@ -83,7 +83,7 @@ sys.dll: $(OBJS)
|
||||
install: all
|
||||
$(INSTALL_PROGRAM) $(SOBJS) $(DESTDIR)$(LIBDIR)
|
||||
|
||||
install_mingw32: dll
|
||||
install_win32: dll
|
||||
$(INSTALL_PROGRAM) -m 755 sys.dll $(LIBDIR)/sys.dll
|
||||
|
||||
clean:
|
||||
|
Reference in New Issue
Block a user