Skip to content

Commit

Permalink
Minor maintenance
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinboone committed Jun 19, 2024
1 parent 8cb5c99 commit f30d862
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions klib/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ TARGET := $(NAME).a
SOURCES := $(shell find src/ -type f -name *.c)
OBJECTS := $(patsubst src/%,build/%,$(SOURCES:.c=.o))
DEPS := $(OBJECTS:.o=.deps)
CFLAGS := -O3 -Wall -DNAME=\"$(NAME)\" -DVERSION=\"$(VERSION)\" -DSHARE=\"$(SHARE)\" -DPREFIX=\"$(PREFIX)\" -I include ${EXTRA_CFLAGS}
LDFLAGS := -pie ${EXTRA_LDFLAGS} -ffunction-sections -fdata-sections
CFLAGS := -O3 -Wall -Wno-unused-result -DNAME=\"$(NAME)\" -DVERSION=\"$(VERSION)\" -DSHARE=\"$(SHARE)\" -DPREFIX=\"$(PREFIX)\" -I include ${EXTRA_CFLAGS}
LDFLAGS := ${EXTRA_LDFLAGS} -ffunction-sections -fdata-sections

$(TARGET): $(OBJECTS)
$(AR) -r $(TARGET) $(OBJECTS)
Expand Down
2 changes: 1 addition & 1 deletion libsolunar/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ KLIB_INC:= $(KLIB)/include
SOURCES := $(shell find src/ -type f -name *.c)
OBJECTS := $(patsubst src/%,build/%,$(SOURCES:.c=.o))
DEPS := $(OBJECTS:.o=.deps)
CFLAGS := -O3 -Wall -DNAME=\"$(NAME)\" -DVERSION=\"$(VERSION)\" -DPREFIX=\"$(PREFIX)\" -I include -I $(KLIB_INC) ${EXTRA_CFLAGS}
CFLAGS := -O3 -Wno-unused-result -Wall -DNAME=\"$(NAME)\" -DVERSION=\"$(VERSION)\" -DPREFIX=\"$(PREFIX)\" -I include -I $(KLIB_INC) ${EXTRA_CFLAGS}
LDFLAGS := ${EXTRA_LDFLAGS} -ffunction-sections -fdata-sections

$(TARGET): $(OBJECTS)
Expand Down

0 comments on commit f30d862

Please sign in to comment.