/[gentoo-x86]/app-arch/zip/files/zip-2.3-unix_configure-pic.patch
Gentoo

Contents of /app-arch/zip/files/zip-2.3-unix_configure-pic.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download) (as text)
Tue Sep 28 19:23:31 2004 UTC (15 years, 10 months ago) by solar
Branch: MAIN
CVS Tags: HEAD
File MIME type: text/x-diff
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.

1 --- unix/configure.orig 2004-09-28 06:45:33.000000000 +0000
2 +++ unix/configure 2004-09-28 06:54:53.000000000 +0000
3 @@ -29,6 +29,9 @@
4
5 echo Check if we can use asm code
6 OBJA=""
7 +piclib="$(echo | $CPP -dM $CFLAGS - | grep -i __pic__)"
8 +echo "Checking if compiler wants to create pic code"
9 +[ "$piclib" == "" ] && \
10 if eval "$CPP match.S > _match.s 2>/dev/null"; then
11 if test ! -s _match.s || grep error < _match.s > /dev/null; then
12 :

  ViewVC Help
Powered by ViewVC 1.1.20