AndreRH / hangover

Hangover runs simple Win32 applications on arm64 Linux
GNU Lesser General Public License v2.1
1.24k stars 91 forks source link

Makefile: Also set HANGOVER_WINE_CC/HANGOVER_WINE_CXX for Wine tools compilation process. #98

Closed jzengc closed 3 years ago

jzengc commented 3 years ago

Tested on Debian bullseye ARM64 with both gcc and clang installed.

AndreRH commented 3 years ago

Hi and thanks for the patch, but I'm afraid it's not that easy. This change would break crosscompiling, for example: https://github.com/AndreRH/hangover/blob/hangover-0.5.15/Dockerfile.cross_ppc64le#L47

PS: I activated Github actions for pull requests now, that way it get's obvious next time

cwabbott0 commented 3 years ago

What would a "proper" solution look like? I had to do this exact same thing...

AndreRH commented 3 years ago

I meanwhile committed 25651b3008812c08161c1615247dac8934d96fab That hopefully should do the trick

jzengc commented 3 years ago

Hi Andre,

I meanwhile committed 25651b3 That hopefully should do the trick

It looks like this doesn't work for my case. The issue I met is that gcc was selected by default for the Wine tools build process while both gcc and clang are installed, but gcc doesn't support __builtin_ms_va_list on Debian ARM64. I don't know why my hack broke the PPC64 building, still didn't try it. Probably introducing a new environment variable for the Wine tools build process will make both Debian ARM64 and PPC64 happy ;-), but sure, this quite tricky, and I think will be better to avoid.

AndreRH commented 3 years ago

I don't know why my hack broke the PPC64 building, still didn't try it. Probably introducing a new environment variable for the Wine tools build process will make both Debian ARM64 and PPC64 happy ;-), but sure, this quite tricky, and I think will be better to avoid.

I just went ahead and did that, so please try as of d43f8e0fae368fcdbf68f364e76e7bb5c25e5fe7

jzengc commented 3 years ago

I don't know why my hack broke the PPC64 building, still didn't try it. Probably introducing a new environment variable for the Wine tools build process will make both Debian ARM64 and PPC64 happy ;-), but sure, this quite tricky, and I think will be better to avoid.

I just went ahead and did that, so please try as of d43f8e0

Yes, this works for me. Thanks!