Hello, I wanted to recompile syslinux64.exe (windows 64bit binary) on ubuntu. The default ./find-mingw64.sh script failed to locate mingw64 on ubuntu, even after root at htpc:~# apt-get install gcc-mingw-w64 So I had to patch the script to let it find mingw64 on ubuntu as well. Patch is below, please apply to syslinux sources: --- syslinux-4.05/win64/find-mingw64.sh.orig 2012-08-28 12:49:17.023627307 +0200 +++ syslinux-4.05/win64/find-mingw64.sh 2012-08-28 12:49:04.167627212 +0200 @@ -20,6 +20,7 @@ amd64-mingw64msvc- \ amd64-mingw32- \ amd64-mingw32msvc- \ + x86_64-w64-mingw32- \ ; do if "${prefix}${cc}" -v > /dev/null 2>&1; then echo "$prefix" Thanks Tomas M slax.org
As you can see I'm not good in generating official (read: usable) patches, I can see it is not possible to directly apply the patch. Anyway, I hope you got the point! :) Thank you Tomas M On Tue, Aug 28, 2012 at 12:51 PM, Tomas M <tomas at slax.org> wrote:> Hello, > I wanted to recompile syslinux64.exe (windows 64bit binary) on ubuntu. > The default ./find-mingw64.sh script failed to locate mingw64 on > ubuntu, even after > > root at htpc:~# apt-get install gcc-mingw-w64 > > So I had to patch the script to let it find mingw64 on ubuntu as well. > Patch is below, please apply to syslinux sources: > > > --- syslinux-4.05/win64/find-mingw64.sh.orig 2012-08-28 12:49:17.023627307 +0200 > +++ syslinux-4.05/win64/find-mingw64.sh 2012-08-28 12:49:04.167627212 +0200 > @@ -20,6 +20,7 @@ > amd64-mingw64msvc- \ > amd64-mingw32- \ > amd64-mingw32msvc- \ > + x86_64-w64-mingw32- \ > ; do > if "${prefix}${cc}" -v > /dev/null 2>&1; then > echo "$prefix" > > > Thanks > > Tomas M > slax.org
On 08/28/2012 03:51 AM, Tomas M wrote:> Hello, > I wanted to recompile syslinux64.exe (windows 64bit binary) on ubuntu. > The default ./find-mingw64.sh script failed to locate mingw64 on > ubuntu, even after > > root at htpc:~# apt-get install gcc-mingw-w64 > > So I had to patch the script to let it find mingw64 on ubuntu as well. > Patch is below, please apply to syslinux sources: >Could you try building syslinux-4.06-pre11 with your patch and see if it works for you? We're having a problem with the Win32 binary recently... -hpa
Seemingly Similar Threads
- [PATCH] [RFC] Makefile: add mingw objects conditionally
- syslinux64.efi boot problems
- [LLVMdev] Regression testing on MSYS2 host with mingw-w64
- [LLVMdev] Linking clang.exe takes more than two hours?
- Only 2.5G of RAM available then syslinux64.efi boots 32-bit linux 686-pae