在Linux下使用OpenWatcom为DOS交叉编译freetype

ili*_*iis 5 dos cross-compiling freetype2 watcom

我正在为旧的MS-DOS计算机编写程序,这比任何事情都有趣。我使用Linux(Fedora 19)作为开发机器,并使用OpenWatcom 1.9编译我的代码。

现在,我想在我的项目中使用FreeType(2.5.2),但是在使用OpenWatcom时遇到了麻烦。make setup watcom像文档建议的那样运行无法正常运行,但仍会自动检测到Unix系统:

$ make setup watcom

FreeType build system -- automatic system detection

The following settings are used:

  platform                    unix
  compiler                    cc
  configuration directory     ./builds/unix
  configuration rules         ./builds/unix/unix.mk

If this does not correspond to your system or settings please remove the file
`config.mk' from this directory then read the INSTALL file for help.

Otherwise, simply type `make' again to build the library,
or `make refdoc' to build the API reference (the latter needs python).

cd builds/unix; /bin/sh ./configure 
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out

...

checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
configure: creating ./config.status
config.status: creating unix-cc.mk
config.status: creating unix-def.mk
config.status: creating ftconfig.h
config.status: executing libtool commands
make: *** No rule to make target `watcom'.  Stop.
Run Code Online (Sandbox Code Playgroud)

使用./configure --host=i286-pc-msdos也不会改变任何事情。问题似乎在于FreeFype构建系统仅与GCC进行交叉编译。我是否真的必须在DosBox内设置整个构建环境,还是可以说服FreeType使用OpenWatcom而不是GCC?

不幸的是,在互联网上找不到很多东西。似乎几乎没人再使用DOS ...