Skip to content

Commit

Permalink
genfs: fix build/link flags
Browse files Browse the repository at this point in the history
- do not override flags given in build env
- put linker flags at the end

QubesOS/qubes-issues#6567
  • Loading branch information
marmarek committed Nov 4, 2023
1 parent bc62e92 commit ad0b68b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions kernel-modules/Makefile
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
MAKEFLAGS ::= -rR
CFLAGS ::= $(shell pkg-config --cflags --libs ext2fs com_err) \
-fstack-protector-all -O2 -D_FORITFY_SOURCE=2 -fwrapv \
LDLIBS += $(shell pkg-config --libs ext2fs com_err)
CFLAGS += $(shell pkg-config --cflags ext2fs com_err) \
-fstack-protector-all -O2 -fwrapv \
-fno-delete-null-pointer-checks -fno-strict-aliasing -Wall -Wextra \
-Werror=format-security -pedantic-errors -Wformat=2 -Wmaybe-uninitialized \
-Wshadow -g3

all: genfs

genfs: genfs.c
gcc $(CFLAGS) genfs.c -o $@
gcc $(CFLAGS) genfs.c $(LDLIBS) -o $@

install: install-scripts install-genfs

Expand Down

0 comments on commit ad0b68b

Please sign in to comment.