From cc851fc929db2daf33a3d3fac819675088e9c142 Mon Sep 17 00:00:00 2001 From: Thomas Klaehn Date: Sat, 13 Jul 2019 22:05:35 +0200 Subject: [PATCH] Workaround: In alpine libftdi is named libftdi1 --- Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index f76d4f5..7c87113 100644 --- a/Makefile +++ b/Makefile @@ -11,9 +11,13 @@ BIN_DIR = bin INCLUDES := inc -#Alpine Linux ftdi include path +#Alpine Linux names libftdi libftdi1 +ifneq "$(findstring Alpine,$(shell head -1 /etc/issue))" "" INCLUDES += /usr/include/libftdi1 +LIBS := ftdi1 +else LIBS := ftdi +endif LD_FLAGS := C_FLAGS := -O0 -g