From 92d9a8637c7a03b25e24fa5737346ec99b6533a7 Mon Sep 17 00:00:00 2001 From: Jay Freeman Date: Fri, 10 Apr 2009 18:08:32 +0000 Subject: Some things are simply better when optimized /in thumb/. git-svn-id: http://svn.telesphoreo.org/trunk@571 514c082c-b64e-11dc-b46d-3d985efe055d --- data/readline/cflags.diff | 21 +++++++++++++++++++++ data/readline/make.sh | 7 ++++--- 2 files changed, 25 insertions(+), 3 deletions(-) create mode 100644 data/readline/cflags.diff (limited to 'data/readline') diff --git a/data/readline/cflags.diff b/data/readline/cflags.diff new file mode 100644 index 000000000..ffbfbba1b --- /dev/null +++ b/data/readline/cflags.diff @@ -0,0 +1,21 @@ +diff -ru readline-6.0/configure.in readline-6.0+iPhone/configure.in +--- readline-6.0/configure.in 2009-01-23 15:53:47.000000000 +0000 ++++ readline-6.0+iPhone/configure.in 2009-04-10 17:13:20.000000000 +0000 +@@ -101,17 +101,11 @@ + echo "Beginning configuration for readline-$LIBVERSION for ${host_cpu}-${host_vendor}-${host_os}" + echo "" + +-# We want these before the checks, so the checks can modify their values. +-test -z "$CFLAGS" && CFLAGS=-g auto_cflags=1 +- + AC_PROG_MAKE_SET + AC_PROG_CC + dnl AC_AIX + AC_MINIX + +-# If we're using gcc and the user hasn't specified CFLAGS, add -O to CFLAGS. +-test -n "$GCC" && test -n "$auto_cflags" && CFLAGS="$CFLAGS -O" +- + AC_PROG_GCC_TRADITIONAL + AC_PROG_INSTALL + AC_CHECK_PROG(AR, ar, , ar) diff --git a/data/readline/make.sh b/data/readline/make.sh index 835b499f7..563dfea62 100644 --- a/data/readline/make.sh +++ b/data/readline/make.sh @@ -1,8 +1,9 @@ pkg:setup +autoconf pkg:configure ac_cv_func_strcoll_works=yes bash_cv_func_sigsetjmp=present bash_cv_func_ctype_nonascii=no bash_cv_must_reinstall_sighandlers=no bash_cv_func_strcoll_broken=yes -make +make CFLAGS='-O2 -mthumb' pkg:install -pkg: ln -s libreadline.6.dylib /usr/lib/libreadline.5.dylib +pkg: ln -s libreadline.5.2.dylib /usr/lib/libreadline.5.dylib pkg: ln -s libreadline.6.0.dylib /usr/lib/libreadline.5.2.dylib -pkg: ln -s libhistory.6.dylib /usr/lib/libhistory.5.dylib +pkg: ln -s libhistory.5.2.dylib /usr/lib/libhistory.5.dylib pkg: ln -s libhistory.6.0.dylib /usr/lib/libhistory.5.2.dylib -- cgit v1.2.3