Gerald Pfeifer gerald@pfeifer.com writes:
Contrast this with the settings on Linux
linux* | k*bsd*-gnu) AC_SUBST(MAIN_BINARY,"wine-glibc") AC_SUBST(EXTRA_BINARIES,"wine-kthread wine-pthread wine-preloader") ;;
where we build wine-glibc (to be installed as $PREFIX/bin/wine) and in addition both wine-kthread and wine-pthread, and install all of these.
At least this is my understanding of MAIN_BINARY versus EXTRA_BINARIES and checks on how Wine installs on Linux and FreeBSD (with, and without my patch). Did I miss (or misunderstand) something?
On Linux, wine-glibc (installed as wine) will detect the threading flavor, and then exec wine-pthread or wine-kthread. You need to do something like that too, otherwise it doesn't make sense to build both, since users will always invoke the one installed as wine.