diff options
author | Ned Ludd <solar@gentoo.org> | 2004-09-28 19:23:31 +0000 |
---|---|---|
committer | Ned Ludd <solar@gentoo.org> | 2004-09-28 19:23:31 +0000 |
commit | ddcf181663ef54aa36b936219fbfe01fe610af83 (patch) | |
tree | b40b122a2535d2ed32e0e2cc13772239995ac1ec /app-arch/zip/files | |
parent | Stable amd64. Added to ~sparc. (diff) | |
download | historical-ddcf181663ef54aa36b936219fbfe01fe610af83.tar.gz historical-ddcf181663ef54aa36b936219fbfe01fe610af83.tar.bz2 historical-ddcf181663ef54aa36b936219fbfe01fe610af83.zip |
pie executables will have runtime text relocations in them with zip unless we disable the inline asm. This is done by adding a patch(tests via the pre compiler to see if we are generating pic code) to zips homegrown configure script. A better long term solution would be to fix said asm so pic users can get any speed advantages that may come from using inline asm.
Diffstat (limited to 'app-arch/zip/files')
-rw-r--r-- | app-arch/zip/files/digest-zip-2.3-r3 | 2 | ||||
-rw-r--r-- | app-arch/zip/files/zip-2.3-unix_configure-pic.patch | 12 |
2 files changed, 14 insertions, 0 deletions
diff --git a/app-arch/zip/files/digest-zip-2.3-r3 b/app-arch/zip/files/digest-zip-2.3-r3 new file mode 100644 index 000000000000..09d293f79547 --- /dev/null +++ b/app-arch/zip/files/digest-zip-2.3-r3 @@ -0,0 +1,2 @@ +MD5 5206a99541f3b0ab90f1baa167392c4f zip23.tar.gz 723283 +MD5 0c969ba1661183b041a142945ed2710e zcrypt29.zip 20248 diff --git a/app-arch/zip/files/zip-2.3-unix_configure-pic.patch b/app-arch/zip/files/zip-2.3-unix_configure-pic.patch new file mode 100644 index 000000000000..45b137b0ed85 --- /dev/null +++ b/app-arch/zip/files/zip-2.3-unix_configure-pic.patch @@ -0,0 +1,12 @@ +--- unix/configure.orig 2004-09-28 06:45:33.000000000 +0000 ++++ unix/configure 2004-09-28 06:54:53.000000000 +0000 +@@ -29,6 +29,9 @@ + + echo Check if we can use asm code + OBJA="" ++piclib="$(echo | $CPP -dM $CFLAGS - | grep -i __pic__)" ++echo "Checking if compiler wants to create pic code" ++[ "$piclib" == "" ] && \ + if eval "$CPP match.S > _match.s 2>/dev/null"; then + if test ! -s _match.s || grep error < _match.s > /dev/null; then + : |