Skip to content

Commit 2d370d1

Browse files
Remove inappropriate -nostdinc option from LDFLAGS (#4)
1 parent 6d44a7f commit 2d370d1

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

kernel/makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ CFLAGS= -std=gnu99 -march=i386 -mtune=i386 -Werror -Wall -O -ffreestanding -flea
1414
CFLAGSDEBUG= -std=gnu99 -march=i386 -mtune=i386 -Werror -Wall -O -ffreestanding -fleading-underscore -nostdlib -nostdinc -fno-builtin -fno-stack-protector -Isrc/include -ggdb
1515
CC= i686-elf-gcc
1616

17-
LDFLAGS= -T kernel.ld -Map kernel.map -nostdinc
18-
LDFLAGSDEBUG = -T kernel_debug.ld -Map kernel.map -nostdinc
17+
LDFLAGS= -T kernel.ld -Map kernel.map
18+
LDFLAGSDEBUG = -T kernel_debug.ld -Map kernel.map
1919
LD= i686-elf-ld
2020

2121
OBJCOPY= i686-elf-objcopy

user/user_programs/cpptest/makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ NASM = nasm
66
CFLAGS= -Werror -Wall -O3 -ffreestanding -fleading-underscore -nostdlib -nostdinc -fno-builtin -I'$(USERLIB)/src/include'
77
CC= i686-elf-g++
88

9-
LDFLAGS= -T $(USERLIB)/user.ld -Map program.map -nostdinc -s --gc-sections --whole-archive
9+
LDFLAGS= -T $(USERLIB)/user.ld -Map program.map -s --gc-sections --whole-archive
1010
LD= i686-elf-ld
1111

1212
all: CPPTEST.ELF

user/user_programs/pcilist/makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ NASM = nasm
66
CFLAGS= -std=c99 -Werror -Wall -O3 -ffreestanding -fleading-underscore -nostdlib -nostdinc -fno-builtin -I'$(USERLIB)/src/include'
77
CC= i686-elf-gcc
88

9-
LDFLAGS= -T $(USERLIB)/user.ld -Map program.map -nostdinc -s --gc-sections --whole-archive
9+
LDFLAGS= -T $(USERLIB)/user.ld -Map program.map -s --gc-sections --whole-archive
1010
LD= i686-elf-ld
1111

1212
all: PCILIST.ELF

user/user_programs/raycaster/makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ NASM = nasm
66
CFLAGS= -std=c99 -Werror -Wall -O3 -ffreestanding -fleading-underscore -nostdlib -nostdinc -fno-builtin -I'$(USERLIB)/src/include'
77
CC= i686-elf-gcc
88

9-
LDFLAGS= -T $(USERLIB)/user.ld -Map program.map -nostdinc -s --gc-sections --whole-archive
9+
LDFLAGS= -T $(USERLIB)/user.ld -Map program.map -s --gc-sections --whole-archive
1010
LD= i686-elf-ld
1111

1212
all: RAYCAST.ELF

user/user_programs/shell/makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ NASM = nasm
66
CFLAGS= -std=c99 -Werror -Wall -O3 -ffreestanding -fleading-underscore -nostdlib -nostdinc -fno-builtin -I'$(USERLIB)/src/include'
77
CC= i686-elf-gcc
88

9-
LDFLAGS= -T $(USERLIB)/user.ld -Map program.map -nostdinc -s --gc-sections --whole-archive
9+
LDFLAGS= -T $(USERLIB)/user.ld -Map program.map -s --gc-sections --whole-archive
1010
LD= i686-elf-ld
1111

1212
all: SHELL.ELF

user/user_programs/threadtest/makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ NASM = nasm
66
CFLAGS= -std=c99 -Werror -Wall -O3 -ffreestanding -fleading-underscore -nostdlib -nostdinc -fno-builtin -I'$(USERLIB)/src/include'
77
CC= i686-elf-gcc
88

9-
LDFLAGS= -T $(USERLIB)/user.ld -Map program.map -nostdinc -s --gc-sections --whole-archive
9+
LDFLAGS= -T $(USERLIB)/user.ld -Map program.map -s --gc-sections --whole-archive
1010
LD= i686-elf-ld
1111

1212
all: THRDTEST.ELF

0 commit comments

Comments
 (0)