https://bugs.winehq.org/show_bug.cgi?id=40245
Bug ID: 40245 Summary: wineg++ fails to find winebuild in Wine's bindir Product: Wine Version: 1.9.4 Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: tools Assignee: wine-bugs@winehq.org Reporter: jre.winesim@gmail.com Distribution: ---
Created attachment 53795 --> https://bugs.winehq.org/attachment.cgi?id=53795 Hello world test example
Hi
I've installed the Debian packages wine-devel and winedevel-dev (1.9.4~stretch amd64) from winehq.
wineg++ fails if I try to compile attached hello.c with: $ /opt/wine-devel/bin/wineg++ -v hello.c -o hello.exe -mwindows
Logfile wineg++.log attached. wineg++ doesn't find winebuild, which is installed in Wine's bindir.
It works if I install "winehq-devel", or add /opt/wine-devel/bin to PATH or export WINEBUILD="/opt/wine-devel/bin/winebuild".
I'd suggest for winegcc/wineg++ to look for winebuild like e.g. Wine does for the wineloader: use WINEBUILD, else look in Wine's bindir (as specified on configure), then in PATH, then in winegcc's path (and in a few other likely locations). Currently it seems to only use WINEBUILD, and else to look for winebuild in PATH.
Greets jre