--- src/Makefile.orig	2013-12-01 12:13:42 UTC
+++ src/Makefile
@@ -215,7 +215,7 @@ ifdef DEP_TRACKING
 endif
 
 # Be sure to rewrite exv_conf.h before compiling anything
-$(SRC): exv_conf.h
+$(SRC) $(EXIV2SRC): exv_conf.h
 
 exv_conf.h: $(top_srcdir)/config/config.h
 	LC_ALL=C sed 's/#define \([A-Z]\)/#define EXV_\1/; s/#undef \([A-Z]\)/#undef EXV_\1/' < $< > $@
@@ -231,7 +231,7 @@ lib: $(OBJ)
 
 $(EXIV2BIN): lib $(EXIV2OBJ) $(EXIV2COBJ)
 	-mkdir ../bin >/dev/null 2>&1
-	@$(LIBTOOL) --mode=link $(LINK.cc) -o $@ $(LIBRARY) $(EXIV2OBJ) $(EXIV2COBJ) -rpath $(libdir)
+	@$(LIBTOOL) --mode=link $(LINK.cc) -o $@ $(LIBRARY) $(EXIV2OBJ) $(EXIV2COBJ) -rpath $(libdir) $(LIBS)
 
 install-header:
 	$(INSTALL_DIRS) $(DESTDIR)$(incdir)
