[syslinux] Syslinux doesn't compile on Mandriva Linux - fixed
Steve Clarke
mailinglist10 at trumpton.org.uk
Sat May 29 05:32:33 PDT 2010
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
More information about the Syslinux
mailing list