[vlc-commits] contrib: jpeg: run ranlib only if needed

Rafaël Carré git at videolan.org
Mon Nov 21 03:35:15 CET 2011


vlc | branch: master | Rafaël Carré <funman at videolan.org> | Sun Nov 20 21:25:58 2011 -0500| [a9d50c22bab0249baabe20a3e99249966ae7a404] | committer: Rafaël Carré

contrib: jpeg: run ranlib only if needed

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a9d50c22bab0249baabe20a3e99249966ae7a404
---

 contrib/src/jpeg/rules.mak |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/contrib/src/jpeg/rules.mak b/contrib/src/jpeg/rules.mak
index d2bd929..a5d2d5d 100644
--- a/contrib/src/jpeg/rules.mak
+++ b/contrib/src/jpeg/rules.mak
@@ -16,5 +16,5 @@ jpeg: jpegsrc.v$(JPEG_VERSION).tar.gz .sum-jpeg
 .jpeg: jpeg
 	cd $< && $(HOSTVARS) ./configure $(HOSTCONF)
 	cd $< && $(MAKE) install
-	cd $< && $(RANLIB) $(PREFIX)/lib/libjpeg.a
+	cd $< && if test -e $(PREFIX)/lib/libjpeg.a; then $(RANLIB) $(PREFIX)/lib/libjpeg.a; fi
 	touch $@



More information about the vlc-commits mailing list