void-packages/srcpkgs/teensy_loader_cli/patches/ldflags.patch

14 lines
429 B
Diff

diff --git Makefile Makefile
index 8bbf28f..f9d6b9d 100644
--- a/Makefile
+++ b/Makefile
@@ -12,7 +12,7 @@ ifeq ($(OS), LINUX) # also works on FreeBSD
CC ?= gcc
CFLAGS ?= -O2 -Wall
teensy_loader_cli: teensy_loader_cli.c
- $(CC) $(CFLAGS) -s -DUSE_LIBUSB -o teensy_loader_cli teensy_loader_cli.c -lusb
+ $(CC) $(LDFLAGS) $(CFLAGS) -s -DUSE_LIBUSB -o teensy_loader_cli teensy_loader_cli.c -lusb
else ifeq ($(OS), WINDOWS)