summaryrefslogtreecommitdiff
path: root/menu
diff options
context:
space:
mode:
authorhpa <hpa>2004-02-02 22:45:28 +0000
committerhpa <hpa>2004-02-02 22:45:28 +0000
commit5e4b11cb257f5137062690473ec3fe79a928141b (patch)
tree7bcd7fd5e2efdbab2fe6a2308138fef14ceb0d1e /menu
parent5441e9fac2d1ff40f2363ed12d31f5eb1ef0e8ec (diff)
downloadsyslinux-5e4b11cb257f5137062690473ec3fe79a928141b.tar.gz
Try being more portable...
Diffstat (limited to 'menu')
-rw-r--r--menu/Makefile6
-rw-r--r--menu/com16.ld12
2 files changed, 8 insertions, 10 deletions
diff --git a/menu/Makefile b/menu/Makefile
index e782a4c2..7e938112 100644
--- a/menu/Makefile
+++ b/menu/Makefile
@@ -1,11 +1,11 @@
-gcc_ok = $(shell if gcc $(1) -c -x c /dev/null -o /dev/null 2>/dev/null; \
+gcc_ok = $(shell if $(CC) $(1) -c -x c /dev/null -o /dev/null 2>/dev/null; \
then echo $(1); else echo $(2); fi)
M32 := $(call gcc_ok,-m32,)
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) -funsigned-char
-CFLAGS = -g -W -Wall -march=i386 $(ALIGN) -Os
+CC = gcc
+CFLAGS = $(M32) -funsigned-char -g -W -Wall -march=i386 $(ALIGN) -Os
AR = ar
AS = as
LD = ld -m elf_i386
diff --git a/menu/com16.ld b/menu/com16.ld
index 73109296..8154f2a6 100644
--- a/menu/com16.ld
+++ b/menu/com16.ld
@@ -63,11 +63,11 @@ SECTIONS
PROVIDE (__etext = .);
PROVIDE (_etext = .);
PROVIDE (etext = .);
- .rodata : { *(.rodata .rodata.* .gnu.linkonce.r.*) }
- .rodata1 : { *(.rodata1) }
- .eh_frame_hdr : { *(.eh_frame_hdr) }
- .eh_frame : ONLY_IF_RO { KEEP (*(.eh_frame)) }
- .gcc_except_table : ONLY_IF_RO { *(.gcc_except_table) }
+ .rodata : { *(.rodata .rodata.* .gnu.linkonce.r.*) }
+ .rodata1 : { *(.rodata1) }
+ .eh_frame_hdr : { *(.eh_frame_hdr) }
+ .eh_frame : { KEEP (*(.eh_frame)) }
+ .gcc_except_table : { *(.gcc_except_table) }
/* For backward-compatibility with tools that don't support the
*_array_* sections below, our glibc's crt files contain weak
definitions of symbols that they reference. We don't want to use
@@ -100,8 +100,6 @@ SECTIONS
.data1 : { *(.data1) }
.tdata : { *(.tdata .tdata.* .gnu.linkonce.td.*) }
.tbss : { *(.tbss .tbss.* .gnu.linkonce.tb.*) *(.tcommon) }
- .eh_frame : ONLY_IF_RW { KEEP (*(.eh_frame)) }
- .gcc_except_table : ONLY_IF_RW { *(.gcc_except_table) }
.dynamic : { *(.dynamic) }
.ctors :
{