Steve Clarke
2010-May-29 12:32 UTC
[syslinux] Syslinux doesn't compile on Mandriva Linux - fixed
Hi, I've tried to compile syslinux under mandriva, and the compilation always bails out because it hasn't created win32/syslinux.exe. As far as I understand, the build will work fine on a Windows / mingw installation, but not Linux. I've modified my Makefile to remove the win32/syslinux.exe from the build, and it now builds OK. This happened on 3.3.6 and also on 4.0pre. I've attached the patchfile which works for me - I've not verified it on a win32 build, but it has been modified with win32 in mind. Best Regards, Steve --- Makefile.orig 2010-05-29 11:12:37.000000000 +0100 +++ Makefile 2010-05-29 11:17:16.000000000 +0100 @@ -19,6 +19,15 @@ include $(topdir)/MCONFIG -include $(topdir)/version.mk # +# Build win32 applications for win32 platforms only +# +ifdef WIN32 +INSTALL_AUX_OPT = win32/syslinux.exe +else +INSTALL_AUX_OPT +endif + +# # The BTARGET refers to objects that are derived from ldlinux.asm; we # like to keep those uniform for debugging reasons; however, distributors # want to recompile the installers (ITARGET). @@ -43,7 +52,7 @@ BOBJECTS = $(BTARGET) \ mbr/mbr_c.bin mbr/altmbr_c.bin mbr/gptmbr_c.bin \ mbr/mbr_f.bin mbr/altmbr_f.bin mbr/gptmbr_f.bin \ core/pxelinux.0 core/isolinux.bin core/isolinux-debug.bin \ - gpxe/gpxelinux.0 dos/syslinux.com win32/syslinux.exe \ + gpxe/gpxelinux.0 dos/syslinux.com $(INSTALL_AUX_OPT) \ dosutil/*.com dosutil/*.sys \ $(MODULES) @@ -68,9 +77,8 @@ INSTALL_SBIN = extlinux/extlinux # Things to install in /usr/lib/syslinux INSTALL_AUX = core/pxelinux.0 gpxe/gpxelinux.0 core/isolinux.bin \ core/isolinux-debug.bin \ - dos/syslinux.com win32/syslinux.exe \ + dos/syslinux.com $(INSTALL_AUX_OPT) \ mbr/*.bin $(MODULES) -INSTALL_AUX_OPT = win32/syslinux.exe # These directories manage their own installables INSTALLSUBDIRS = com32 utils dosutil
Sebastian Herbszt
2010-May-29 19:28 UTC
[syslinux] Syslinux doesn't compile on Mandriva Linux - fixed
Steve Clarke wrote:> Hi, > > I've tried to compile syslinux under mandriva, and the compilation always > bails out because it hasn't created win32/syslinux.exe. As far as I > understand, the build will work fine on a Windows / mingw installation, but not > Linux. > > I've modified my Makefile to remove the win32/syslinux.exe from the build, and > it now builds OK. > > This happened on 3.3.6 and also on 4.0pre. > > I've attached the patchfile which works for me - I've not verified it on a win32 > build, but it has been modified with win32 in mind. > > Best Regards, SteveCan you post the error? git master compiles fine here on openSUSE. Sebastian
H. Peter Anvin
2010-May-29 20:58 UTC
[syslinux] Syslinux doesn't compile on Mandriva Linux - fixed
On 05/29/2010 05:32 AM, Steve Clarke wrote:> Hi, > > I've tried to compile syslinux under mandriva, and the compilation always > bails out because it hasn't created win32/syslinux.exe. As far as I > understand, the build will work fine on a Windows / mingw installation, but not > Linux. >That is just not true; in fact, Linux (Fedora in my case) is my development and compilation platform. In order to build syslinux.exe, you need a mingw32 compiler installed, but the build is set up to handle this file not being there. -hpa