gentoo/dev-embedded/powersoftplus-libftdi/files/powersoftplus-libftdi-0.1.8-LDFLAGS.patch
Sam James 835ffbd54c
dev-embedded/powersoftplus-libftdi: port to EAPI 7
Closes: https://bugs.gentoo.org/339701
Closes: https://bugs.gentoo.org/742203
Package-Manager: Portage-3.0.4, Repoman-3.0.1
Signed-off-by: Sam James <sam@gentoo.org>
2020-10-06 20:05:56 +00:00

24 lines
572 B
Diff

diff --git a/libftdi/lib_table/Makefile b/libftdi/lib_table/Makefile
index cf4316b..dd393b8 100644
--- a/libftdi/lib_table/Makefile
+++ b/libftdi/lib_table/Makefile
@@ -1,15 +1,15 @@
# which compiler
-CC = gcc
+CC ?= gcc
VERSION = _RELEASE
LIBNAME = libd2xx_table.so
-CFLAGS = -DLINUX -D$(VERSION)
+CFLAGS += -DLINUX -D$(VERSION)
$(LIBNAME): ftdi_table.o
- $(CC) -Wall -shared -fPIC -o $(LIBNAME) ftdi_table.o
+ $(CC) -Wall -shared -fPIC ${LDFLAGS} -o $(LIBNAME) ftdi_table.o
ftdi_table.o: ftdi_table.c
$(CC) -I. $(CFLAGS) -c -fPIC ftdi_table.c