From aff7e8eb792906aa8aeec9e9f67ed93ed2343b53 Mon Sep 17 00:00:00 2001 From: Michal Papis Date: Wed, 13 Jun 2012 17:53:59 +0200 Subject: [PATCH] fix readline shared lib on osx --- readline/shell/functions | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 readline/shell/functions diff --git a/readline/shell/functions b/readline/shell/functions new file mode 100755 index 0000000..52cbf84 --- /dev/null +++ b/readline/shell/functions @@ -0,0 +1,12 @@ +#!/bin/sh + +readline_preconfigure() +{ + if os is darwin && os arch type is x86_64 + then + __sm.package.configure.flag --build x86_64-apple-darwin11 + # dynamic patch, solves fixing different versions + file replace regexp '-arch_only `/usr/bin/arch`' with '' support/shobj-conf + file replace regexp 'darwin\[.*)' with 'darwin*' support/shobj-conf + fi +}