summaryrefslogblamecommitdiff
path: root/system/zip/30-zip-3.0-pic.patch
blob: 23707f386179ad38e6763259cbed17b655b284e9 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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
     :