[packages] jpeg: fix compilation with ccache, thanks swalker
[openwrt.org/packages.git] / libs / jpeg / patches / 001-allow-ccache.patch
blob:a/libs/jpeg/patches/001-allow-ccache.patch -> blob:b/libs/jpeg/patches/001-allow-ccache.patch
--- a/libs/jpeg/patches/001-allow-ccache.patch
+++ b/libs/jpeg/patches/001-allow-ccache.patch
@@ -1,1 +1,12 @@
+--- a/makefile.cfg
++++ b/makefile.cfg
+@@ -168,7 +168,7 @@ libjpeg.a: @A2K_DEPS@ $(LIBOBJECTS)
+ 
+ # with libtool:
+ libjpeg.la: @A2K_DEPS@ $(LIBOBJECTS)
+-	$(LIBTOOL) --mode=link $(CC) -o libjpeg.la $(LIBOBJECTS) \
++	$(LIBTOOL) --mode=link "$(CC)" -o libjpeg.la $(LIBOBJECTS) \
+ 		-rpath $(libdir) -version-info $(JPEG_LIB_VERSION)
+ 
+ # sample programs:
 

comments