Merge "applypatch: add -fPIC for libimgpatch in Chrome OS." am: 5593342575
am: db78de25c2
* commit 'db78de25c2dfe0657c2b3408a5f9f5a587931cff':
applypatch: add -fPIC for libimgpatch in Chrome OS.
diff --git a/applypatch/Makefile b/applypatch/Makefile
index fa6298d..de6d426 100644
--- a/applypatch/Makefile
+++ b/applypatch/Makefile
@@ -28,5 +28,6 @@
imgdiff: imgdiff.o bsdiff.o utils.o
$(CXX) $(CPPFLAGS) $(CXXFLAGS) $(LDLIBS) -o $@ $^
+libimgpatch.a utils.o: CXXFLAGS += -fPIC
libimgpatch.a: imgpatch.o bspatch.o utils.o
${AR} rcs $@ $^