View | Details | Raw Unified
Collapse All | Expand All

(-) syslinux-3.07/Makefile (-4 / +3 lines)
 Lines 18-24    Link Here 
OSTYPE   = $(shell uname -msr)
OSTYPE   = $(shell uname -msr)
CC	 = gcc
CC	 = gcc
INCLUDE  =
INCLUDE  =
CFLAGS   = -W -Wall -Os -fomit-frame-pointer -D_FILE_OFFSET_BITS=64
CFLAGS   = -W -Wall -fno-stack-protector -Os -fomit-frame-pointer -D_FILE_OFFSET_BITS=64
PIC      = -fPIC
PIC      = -fPIC
LDFLAGS  = -O2 -s
LDFLAGS  = -O2 -s
AR	 = ar
AR	 = ar
 Lines 191-199   libsyslinux.a: bootsect_bin.o ldlinux_bi Link Here 
$(LIB_SO): bootsect_bin.o ldlinux_bin.o syslxmod.o
$(LIB_SO): bootsect_bin.o ldlinux_bin.o syslxmod.o
	$(CC) $(LDFLAGS) -shared -Wl,-soname,$(LIB_SONAME) -o $@ $^
	$(CC) $(LDFLAGS) -shared -Wl,-soname,$(LIB_SONAME) -o $@ $^
gethostip.o: gethostip.c
gethostip: gethostip.c
	$(CC) $(LDFLAGS) gethostip.c -o gethostip -fno-stack-protector
gethostip: gethostip.o
mkdiskimage: mkdiskimage.in mbr.bin bin2hex.pl
mkdiskimage: mkdiskimage.in mbr.bin bin2hex.pl
	$(PERL) bin2hex.pl < mbr.bin | cat mkdiskimage.in - > $@
	$(PERL) bin2hex.pl < mbr.bin | cat mkdiskimage.in - > $@
(-) syslinux-3.07/com32/lib/MCONFIG (-1 / +1 lines)
 Lines 18-24   LIBFLAGS = -DDYNAMIC_CRC_TABLE -DPNG_NO_ Link Here 
REQFLAGS  = -g -m32 -mregparm=3 -DREGPARM=3 -D__COM32__ -I. -I./sys -I../include
REQFLAGS  = -g -m32 -mregparm=3 -DREGPARM=3 -D__COM32__ -I. -I./sys -I../include
OPTFLAGS  = -Os -march=i386 -falign-functions=0 -falign-jumps=0 \
OPTFLAGS  = -Os -march=i386 -falign-functions=0 -falign-jumps=0 \
	    -falign-labels=0
	    -falign-labels=0 -fno-stack-protector
WARNFLAGS = -W -Wall -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Winline
WARNFLAGS = -W -Wall -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Winline
CFLAGS  = -Wp,-MT,$@,-MD,$(dir $@).$(notdir $@).d $(OPTFLAGS) \
CFLAGS  = -Wp,-MT,$@,-MD,$(dir $@).$(notdir $@).d $(OPTFLAGS) \
(-) syslinux-3.07/com32/libutil/Makefile (-2 / +2 lines)
 Lines 40-49   LD = ld -m elf_i386 Link Here 
AR	   = ar
AR	   = ar
NASM	   = nasm
NASM	   = nasm
RANLIB	   = ranlib
RANLIB	   = ranlib
CFLAGS     = $(M32) -mregparm=3 -DREGPARM=3 -D__COM32__ -W -Wall -march=i386 -Os -fomit-frame-pointer -I./include -I../include
CFLAGS     = $(M32) -mregparm=3 -DREGPARM=3 -D__COM32__ -W -Wall -fno-stack-protector -march=i386 -Os -fomit-frame-pointer -I./include -I../include
SFLAGS     = $(M32) -D__COM32__ -march=i386
SFLAGS     = $(M32) -D__COM32__ -march=i386
LDFLAGS    = -T ../lib/com32.ld
LDFLAGS    = -T ../lib/com32.ld
LNXCFLAGS  = -I./include -W -Wall -O -g
LNXCFLAGS  = -I./include -W -Wall -fno-stack-protector -O -g
LNXSFLAGS  = -g
LNXSFLAGS  = -g
LNXLDFLAGS = -g
LNXLDFLAGS = -g
OBJCOPY    = objcopy
OBJCOPY    = objcopy
(-) syslinux-3.07/com32/modules/Makefile (-2 / +2 lines)
 Lines 25-32   LD = ld -m elf_i386 Link Here 
AR	   = ar
AR	   = ar
NASM	   = nasm
NASM	   = nasm
RANLIB	   = ranlib
RANLIB	   = ranlib
CFLAGS     = $(M32) -mregparm=3 -DREGPARM=3 -W -Wall -march=i386 -Os -fomit-frame-pointer -I../libutil/include -I../include  -D__COM32__
CFLAGS     = $(M32) -mregparm=3 -DREGPARM=3 -W -Wall -fno-stack-protector -march=i386 -Os -fomit-frame-pointer -I../libutil/include -I../include  -D__COM32__
LNXCFLAGS  = -W -Wall -O -g -I../libutil/include
LNXCFLAGS  = -W -Wall -fno-stack-protector -O -g -I../libutil/include
LNXSFLAGS  = -g
LNXSFLAGS  = -g
LNXLDFLAGS = -g
LNXLDFLAGS = -g
SFLAGS     = -D__COM32__ -march=i386
SFLAGS     = -D__COM32__ -march=i386
(-) syslinux-3.07/com32/samples/Makefile (-2 / +2 lines)
 Lines 25-32   LD = ld -m elf_i386 Link Here 
AR	   = ar
AR	   = ar
NASM	   = nasm
NASM	   = nasm
RANLIB	   = ranlib
RANLIB	   = ranlib
CFLAGS     = $(M32) -mregparm=3 -DREGPARM=3 -W -Wall -march=i386 -Os -fomit-frame-pointer -I../libutil/include -I../include  -D__COM32__
CFLAGS     = $(M32) -mregparm=3 -DREGPARM=3 -W -Wall -fno-stack-protector -march=i386 -Os -fomit-frame-pointer -I../libutil/include -I../include  -D__COM32__
LNXCFLAGS  = -W -Wall -O -g -I../libutil/include
LNXCFLAGS  = -W -Wall -fno-stack-protector -O -g -I../libutil/include
LNXSFLAGS  = -g
LNXSFLAGS  = -g
LNXLDFLAGS = -g
LNXLDFLAGS = -g
SFLAGS     = -D__COM32__ -march=i386
SFLAGS     = -D__COM32__ -march=i386
(-) syslinux-3.07/dos/Makefile (-1 / +1 lines)
 Lines 3-9   LD = ld -m elf_i386 Link Here 
OBJCOPY  = objcopy
OBJCOPY  = objcopy
OPTFLAGS = -g -Os -march=i386 -falign-functions=0 -falign-jumps=0 -falign-loops=0 -fomit-frame-pointer
OPTFLAGS = -g -Os -march=i386 -falign-functions=0 -falign-jumps=0 -falign-loops=0 -fomit-frame-pointer
INCLUDES = -include code16.h -I. -I.. -I../libfat
INCLUDES = -include code16.h -I. -I.. -I../libfat
CFLAGS	 = -W -Wall -ffreestanding -msoft-float $(OPTFLAGS) $(INCLUDES)
CFLAGS	 = -W -Wall -fno-stack-protector -ffreestanding -msoft-float $(OPTFLAGS) $(INCLUDES)
LDFLAGS	 = -T com16.ld
LDFLAGS	 = -T com16.ld
AR       = ar
AR       = ar
RANLIB   = ranlib
RANLIB   = ranlib
(-) syslinux-3.07/extlinux/Makefile (-1 / +1 lines)
 Lines 1-7    Link Here 
CC	 = gcc
CC	 = gcc
OPTFLAGS = -g -Os
OPTFLAGS = -g -Os
INCLUDES = -I. -I.. -I../libfat
INCLUDES = -I. -I.. -I../libfat
CFLAGS	 = -W -Wall -Wno-sign-compare -D_FILE_OFFSET_BITS=64 $(OPTFLAGS) $(INCLUDES)
CFLAGS	 = -W -Wall -fno-stack-protector -Wno-sign-compare -D_FILE_OFFSET_BITS=64 $(OPTFLAGS) $(INCLUDES)
LDFLAGS	 = -s
LDFLAGS	 = -s
SRCS     = extlinux.c ../extlinux_bss_bin.c ../extlinux_sys_bin.c
SRCS     = extlinux.c ../extlinux_bss_bin.c ../extlinux_sys_bin.c
(-) syslinux-3.07/memdisk/Makefile (-1 / +1 lines)
 Lines 20-26   M32 := $(call gcc_ok,-m32,) Link Here 
ALIGN   := $(call gcc_ok,-falign-functions=0 -falign-jumps=0 -falign-loops=0,-malign-functions=0 -malign-jumps=0 -malign-loops=0)
ALIGN   := $(call gcc_ok,-falign-functions=0 -falign-jumps=0 -falign-loops=0,-malign-functions=0 -malign-jumps=0 -malign-loops=0)
CC       = gcc $(M32)
CC       = gcc $(M32)
CFLAGS   = -g -W -Wall -Wno-sign-compare \
CFLAGS   = -g -W -Wall -fno-stack-protector -Wno-sign-compare \
	   -Os -fomit-frame-pointer -march=i386 $(ALIGN) \
	   -Os -fomit-frame-pointer -march=i386 $(ALIGN) \
	   -DVERSION='"$(VERSION)"' -DDATE='"$(DATE)"'
	   -DVERSION='"$(VERSION)"' -DDATE='"$(DATE)"'
LDFLAGS  = -g
LDFLAGS  = -g
(-) syslinux-3.07/menu/Makefile (-1 / +1 lines)
 Lines 5-11   M32 := $(call gcc_ok,-m32,) Link Here 
ALIGN   := $(call gcc_ok,-falign-functions=0 -falign-jumps=0 -falign-loops=0,-malign-functions=0 -malign-jumps=0 -malign-loops=0)
ALIGN   := $(call gcc_ok,-falign-functions=0 -falign-jumps=0 -falign-loops=0,-malign-functions=0 -malign-jumps=0 -malign-loops=0)
CC	= gcc
CC	= gcc
CFLAGS  =  $(M32) -funsigned-char -g -W -Wall -march=i386 $(ALIGN) -Os
CFLAGS  =  $(M32) -funsigned-char -g -W -Wall -fno-stack-protector -march=i386 $(ALIGN) -Os
AR      = ar
AR      = ar
AS      = as
AS      = as
LD      = ld -m elf_i386
LD      = ld -m elf_i386
(-) syslinux-3.07/mtools/Makefile (-1 / +1 lines)
 Lines 1-7    Link Here 
CC	 = gcc
CC	 = gcc
OPTFLAGS = -g -Os
OPTFLAGS = -g -Os
INCLUDES = -I. -I.. -I../libfat
INCLUDES = -I. -I.. -I../libfat
CFLAGS	 = -W -Wall -D_FILE_OFFSET_BITS=64 $(OPTFLAGS) $(INCLUDES)
CFLAGS	 = -W -Wall -fno-stack-protector -D_FILE_OFFSET_BITS=64 $(OPTFLAGS) $(INCLUDES)
LDFLAGS	 = -s
LDFLAGS	 = -s
SRCS     = syslinux.c ../syslxmod.c ../bootsect_bin.c ../ldlinux_bin.c $(wildcard ../libfat/*.c)
SRCS     = syslinux.c ../syslxmod.c ../bootsect_bin.c ../ldlinux_bin.c $(wildcard ../libfat/*.c)
(-) syslinux-3.07/sample/Makefile (-1 / +1 lines)
 Lines 25-31   LD = ld -m elf_i386 Link Here 
AR	   = ar
AR	   = ar
NASM	   = nasm
NASM	   = nasm
RANLIB	   = ranlib
RANLIB	   = ranlib
CFLAGS     = -W -Wall -march=i386 -Os -fomit-frame-pointer -I../com32/include
CFLAGS     = -W -Wall -fno-stack-protector -march=i386 -Os -fomit-frame-pointer -I../com32/include
SFLAGS     = -march=i386
SFLAGS     = -march=i386
LDFLAGS    = -s
LDFLAGS    = -s
OBJCOPY    = objcopy
OBJCOPY    = objcopy
(-) syslinux-3.07/unix/Makefile (-1 / +1 lines)
 Lines 1-7    Link Here 
CC	 = gcc
CC	 = gcc
OPTFLAGS = -g -Os
OPTFLAGS = -g -Os
INCLUDES = -I. -I.. -I../libfat
INCLUDES = -I. -I.. -I../libfat
CFLAGS	 = -W -Wall -D_FILE_OFFSET_BITS=64 $(OPTFLAGS) $(INCLUDES)
CFLAGS	 = -W -Wall -fno-stack-protector -D_FILE_OFFSET_BITS=64 $(OPTFLAGS) $(INCLUDES)
LDFLAGS	 = -s
LDFLAGS	 = -s
SRCS     = syslinux.c ../syslxmod.c ../bootsect_bin.c ../ldlinux_bin.c $(wildcard ../libfat/*.c)
SRCS     = syslinux.c ../syslxmod.c ../bootsect_bin.c ../ldlinux_bin.c $(wildcard ../libfat/*.c)
(-) syslinux-3.07/win32/Makefile (-2 / +2 lines)
 Lines 23-29   ifeq ($(findstring CYGWIN,$(OSTYPE)),CYG Link Here 
CC       = gcc
CC       = gcc
AR	 = ar
AR	 = ar
RANLIB   = ranlib
RANLIB   = ranlib
CFLAGS   = -mno-cygwin -W -Wall -Os -fomit-frame-pointer -D_FILE_OFFSET_BITS=64
CFLAGS   = -mno-cygwin -W -Wall -fno-stack-protector -Os -fomit-frame-pointer -D_FILE_OFFSET_BITS=64
PIC	 =
PIC	 =
LDFLAGS  = -mno-cygwin -Os -s
LDFLAGS  = -mno-cygwin -Os -s
else
else
 Lines 37-43   AR = mingw-ar Link Here 
RANLIB   = mingw-ranlib
RANLIB   = mingw-ranlib
endif
endif
CFLAGS   = -W -Wall -Wno-sign-compare -Os -fomit-frame-pointer -D_FILE_OFFSET_BITS=64
CFLAGS   = -W -Wall -fno-stack-protector -Wno-sign-compare -Os -fomit-frame-pointer -D_FILE_OFFSET_BITS=64
PIC      =
PIC      =
LDFLAGS  = -Os -s
LDFLAGS  = -Os -s
endif
endif