Skip to content

Commit

Permalink
Static link explicitly libbsd
Browse files Browse the repository at this point in the history
  • Loading branch information
3XX0 committed Feb 10, 2024
1 parent eb4300b commit 0d85f8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ CFLAGS := -std=c99 -O2 -fstack-protector -fPIE -pedantic
-Wwrite-strings -Wlogical-op -Wformat=2 -Wmissing-format-attribute -Winit-self -Wshadow \
-Wstrict-prototypes -Wunreachable-code -Wconversion -Wsign-conversion $(CFLAGS)
LDFLAGS := -Wl,-zrelro -Wl,-znow -Wl,-zdefs -Wl,--as-needed -Wl,--gc-sections -L$(CURDIR)/deps/dist/libbsd/lib $(LDFLAGS)
LDLIBS := -lbsd
LDLIBS := -l:libbsd.a

ifdef DEBUG
CFLAGS += -g3 -fno-omit-frame-pointer -fno-common -fsanitize=undefined,address,leak
Expand Down

0 comments on commit 0d85f8d

Please sign in to comment.