diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2018-06-22 00:41:53 -0500 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2018-06-22 00:41:53 -0500 |
commit | e5948b872087d4bd939ee52921146417967f3fd9 (patch) | |
tree | 5b991deef2a930da925d1932d4cef7cfcb2a7b1b /system/zip/30-zip-3.0-pic.patch | |
parent | 3a90a9469a33579c60320149a882aa8157814bfe (diff) | |
download | packages-e5948b872087d4bd939ee52921146417967f3fd9.tar.gz packages-e5948b872087d4bd939ee52921146417967f3fd9.tar.bz2 packages-e5948b872087d4bd939ee52921146417967f3fd9.tar.xz packages-e5948b872087d4bd939ee52921146417967f3fd9.zip |
system/zip: pull in for gcc
Diffstat (limited to 'system/zip/30-zip-3.0-pic.patch')
-rw-r--r-- | system/zip/30-zip-3.0-pic.patch | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/system/zip/30-zip-3.0-pic.patch b/system/zip/30-zip-3.0-pic.patch new file mode 100644 index 000000000..23707f386 --- /dev/null +++ b/system/zip/30-zip-3.0-pic.patch @@ -0,0 +1,15 @@ +if our toolchain generates PIC by default, then do not use the hand written +assembly files as none of it is PIC friendly. + +--- a/unix/configure Wed Jan 28 22:23:54 2009 ++++ b/unix/configure Wed Jan 28 22:29:51 2009 +@@ -228,6 +228,9 @@ + echo Check if we can use asm code + OBJA="" + OCRCU8="" ++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 + : |