diff options
Diffstat (limited to 'dev-embedded/smdk-dltool/files/smdk-dltool-0.20-build.patch')
-rw-r--r-- | dev-embedded/smdk-dltool/files/smdk-dltool-0.20-build.patch | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/dev-embedded/smdk-dltool/files/smdk-dltool-0.20-build.patch b/dev-embedded/smdk-dltool/files/smdk-dltool-0.20-build.patch new file mode 100644 index 000000000000..c6e3b767394b --- /dev/null +++ b/dev-embedded/smdk-dltool/files/smdk-dltool-0.20-build.patch @@ -0,0 +1,20 @@ +respect env build settings + +--- a/releases/smdk-tools-v0.20/dltool/Makefile ++++ b/releases/smdk-tools-v0.20/dltool/Makefile +@@ -7,8 +7,13 @@ + + .PHONY: clean + +-dltool: dltool.c +- $(CC) -O2 -Wall -g -lusb -o smdk-usbdl dltool.c ++CFLAGS ?= -O2 -g ++CFLAGS += -Wall ++PKG_CONFIG ?= pkg-config ++CPPFLAGS += $(shell $(PKG_CONFIG) --cflags libusb) ++LDLIBS = $(shell $(PKG_CONFIG) --libs libusb) ++ ++all: dltool + + clean: + -rm smdk-usbdl |