From ef2016f711eaef6c22d177a12d335055556ea3a0 Mon Sep 17 00:00:00 2001 From: Sen Jiang Date: Tue, 8 Mar 2016 14:27:14 -0800 Subject: applypatch: add -fPIC for libimgpatch in Chrome OS. To make the static library position independent. Bug: 26866274 Test: emerge-peppy imgdiff; sudo emerge imgdiff; emerge nyan imgdiff Change-Id: I319e721ccfb6a51f63d31afa49f54aa7f607f4bf --- applypatch/Makefile | 1 + 1 file changed, 1 insertion(+) (limited to 'applypatch/Makefile') diff --git a/applypatch/Makefile b/applypatch/Makefile index fa6298d46..de6d4268f 100644 --- a/applypatch/Makefile +++ b/applypatch/Makefile @@ -28,5 +28,6 @@ clean: 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 $@ $^ -- cgit v1.2.3