diff options
author | Michael Heimpold <mhei@heimpold.de> | 2016-09-02 23:04:12 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-09-02 23:04:12 +0200 |
commit | c87a3371c5b489eaec3f264d819f0aa7bedf06f9 (patch) | |
tree | 7ed78712c81b04dba0b1b978ae34c798cf2051a5 /libs | |
parent | 4757378badff5eb9ae44c259fb2ddaddf8576b72 (diff) | |
parent | 8a2d6ceef4215b466e29503b4aec2b499cc3ff8e (diff) |
Merge pull request #3098 from mhei/fix-libcanfestival
libcanfestival: fix build on LEDE buildbots using ccache
Diffstat (limited to 'libs')
-rw-r--r-- | libs/libcanfestival/patches/003-makefile-ar-ranlib.patch | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/libs/libcanfestival/patches/003-makefile-ar-ranlib.patch b/libs/libcanfestival/patches/003-makefile-ar-ranlib.patch new file mode 100644 index 000000000..50a6ae0b8 --- /dev/null +++ b/libs/libcanfestival/patches/003-makefile-ar-ranlib.patch @@ -0,0 +1,31 @@ +--- a/src/Makefile.in ++++ b/src/Makefile.in +@@ -38,6 +38,9 @@ TARGET = SUB_TARGET + CAN_DRIVER = SUB_CAN_DRIVER + TIMERS_DRIVER = SUB_TIMERS_DRIVER + ENABLE_LSS = SUB_ENABLE_LSS ++AR ?= $(BINUTILS_PREFIX)ar ++RANLIB ?= $(BINUTILS_PREFIX)ranlib ++LD ?= $(BINUTILS_PREFIX)ld + + INCLUDES = -I../include -I../include/$(TARGET) -I../include/$(TIMERS_DRIVER) -I../drivers/$(TARGET) + +@@ -114,15 +117,15 @@ libcanfestival.a: $(OBJS) + @echo "*********************************************" + @echo "**Building [libcanfestival.a]" + @echo "*********************************************" +- $(BINUTILS_PREFIX)ar rc $@ $(OBJS) +- $(BINUTILS_PREFIX)ranlib $@ ++ $(AR) rc $@ $(OBJS) ++ $(RANLIB) $@ + + libcanfestival.o: $(OBJS) + @echo " " + @echo "*********************************************" + @echo "**Prelink [libcanfestival.o]" + @echo "*********************************************" +- $(BINUTILS_PREFIX)ld -r $(OBJS) -o $@ ++ $(LD) -r $(OBJS) -o $@ + + $(TARGET)_%.o: %.c + @echo " " |