Limine Bare Bones: Difference between revisions

Jump to navigation Jump to search
[unchecked revision][unchecked revision]
Content added Content deleted
mNo edit summary
mNo edit summary
Line 233: Line 233:


# User controllable C flags.
# User controllable C flags.
$(eval $(call DEFAULT_VAR,CFLAGS,-g -O2 -pipe -Wall -Wextra))
$(eval $(call DEFAULT_VAR,CFLAGS,-g -O2 -pipe))


# User controllable C preprocessor flags. We set none by default.
# User controllable C preprocessor flags. We set none by default.
Line 246: Line 246:
# Internal C flags that should not be changed by the user.
# Internal C flags that should not be changed by the user.
override CFLAGS += \
override CFLAGS += \
-Wall \
-Wextra \
-std=gnu11 \
-std=gnu11 \
-ffreestanding \
-ffreestanding \
Line 251: Line 253:
-fno-stack-check \
-fno-stack-check \
-fno-lto \
-fno-lto \
-fno-pie \
-fno-PIE \
-fno-pic \
-fno-PIC \
-m64 \
-m64 \
-march=x86-64 \
-march=x86-64 \
Line 285: Line 287:
# Internal nasm flags that should not be changed by the user.
# Internal nasm flags that should not be changed by the user.
override NASMFLAGS += \
override NASMFLAGS += \
-Wall \
-f elf64
-f elf64