Workaround: In alpine libftdi is named libftdi1
This commit is contained in:
parent
57f7b1ebe4
commit
cb995279b2
6
Makefile
6
Makefile
@ -13,7 +13,13 @@ INCLUDES := inc
|
|||||||
|
|
||||||
#Alpine Linux ftdi include path
|
#Alpine Linux ftdi include path
|
||||||
INCLUDES += /usr/include/libftdi1
|
INCLUDES += /usr/include/libftdi1
|
||||||
|
|
||||||
|
DISTRO=$(cat /etc/issue | grep Alpine)
|
||||||
|
ifeq "$(findstring Alpine,$(DISTRO))" ""
|
||||||
LIBS := ftdi
|
LIBS := ftdi
|
||||||
|
else
|
||||||
|
LIBS := ftdi1
|
||||||
|
endif
|
||||||
|
|
||||||
LD_FLAGS :=
|
LD_FLAGS :=
|
||||||
C_FLAGS := -O0 -g
|
C_FLAGS := -O0 -g
|
||||||
|
Loading…
Reference in New Issue
Block a user