- solve readline compile.
authorRonan Le Martret <ronan@fridu.net>
Mon, 15 Jul 2013 15:04:41 +0000 (17:04 +0200)
committerRonan Le Martret <ronan@fridu.net>
Mon, 15 Jul 2013 15:04:41 +0000 (17:04 +0200)
proto-meta-Tizen_ivi_3.0/specfile-patch/readline.spec.patch [new file with mode: 0644]

diff --git a/proto-meta-Tizen_ivi_3.0/specfile-patch/readline.spec.patch b/proto-meta-Tizen_ivi_3.0/specfile-patch/readline.spec.patch
new file mode 100644 (file)
index 0000000..3826f05
--- /dev/null
@@ -0,0 +1,28 @@
+diff --git a/packaging/readline.spec b/packaging/readline.spec
+index 9454a93..85bf5e7 100644
+--- a/packaging/readline.spec
++++ b/packaging/readline.spec
+@@ -53,12 +53,12 @@ includes history and search functionality.
+       case "%{optflags}" in
+       *${flag}*) return
+       esac
+-      if test -n "$1" && gcc -Werror $flag -S -o /dev/null -xc   /dev/null > /dev/null 2>&1 ; then
++      if test -n "$1" && %__cc -Werror $flag -S -o /dev/null -xc   /dev/null > /dev/null 2>&1 ; then
+         local var=$1; shift
+         eval $var=\${$var:+\$$var\ }$flag
+       fi
+   }
+-  echo 'int main () { return !(sizeof(void*) >= 8); }' | gcc -x c -o test64 -
++  echo 'int main () { return !(sizeof(void*) >= 8); }' | %__cc -x c -o test64 -
+   if ./test64 ; then
+       LARGEFILE=""
+   else
+@@ -76,7 +76,7 @@ includes history and search functionality.
+   cflags -pipe                   CFLAGS
+   cflags -Wl,--as-needed         LDFLAGS
+   cflags -Wl,-O,2                LDFLAGS
+-  CC=gcc
++  CC=%__cc
+   CC_FOR_BUILD="$CC"
+   CFLAGS_FOR_BUILD="$CFLAGS"
+   LDFLAGS_FOR_BUILD="$LDFLAGS"