From f019eb66d4759c3c2baffb5937567a2ee953a65e Mon Sep 17 00:00:00 2001 From: michalbednarski Date: Tue, 19 Apr 2016 21:12:29 +0200 Subject: [PATCH] gnupg: Don't have text relocations on x86 GnuPG has x86-specific assembly files that don't have text relocations only if they are preprocessed with PIC macro defined These assembly files are src/mpi/i386/mpih-{add,sub}1.S --- packages/gnupg/src-mpi-Makefile.in.patch | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 packages/gnupg/src-mpi-Makefile.in.patch diff --git a/packages/gnupg/src-mpi-Makefile.in.patch b/packages/gnupg/src-mpi-Makefile.in.patch new file mode 100644 index 000000000..5f1c7e0ad --- /dev/null +++ b/packages/gnupg/src-mpi-Makefile.in.patch @@ -0,0 +1,11 @@ +--- gnupg-1.4.20/mpi/Makefile.in 2015-12-20 08:53:15.000000000 +0100 ++++ src/mpi/Makefile.in 2016-04-19 19:33:55.167315560 +0200 +@@ -713,7 +713,7 @@ + # cancel the default rules used by libtool which do not really + # work and add one to cpp .S files + .S.o: +- $(CPP) $(INCLUDES) $(DEFS) $< | grep -v '^#' > _$*.s ++ $(CPP) $(INCLUDES) $(DEFS) -DPIC $< | grep -v '^#' > _$*.s + $(COMPILE) $(AM_CCASFLAGS) -c _$*.s + mv -f _$*.o $*.o +