From e508b3149e88a6b1445b7e1412a7b715c0418dd5 Mon Sep 17 00:00:00 2001 From: Richard Maw Date: Thu, 31 May 2012 16:03:27 +0100 Subject: lua.morph: prevent linking to readline as well Just removing it from the headers doesn't stop it linking, as those are disjoint operations when building C programs. Yet more ugly sed. --- lua.morph | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lua.morph b/lua.morph index 06ba749..4f88b95 100644 --- a/lua.morph +++ b/lua.morph @@ -2,7 +2,8 @@ "name": "lua", "kind": "chunk", "configure-commands": [ - "sed -e 's/defined(LUA_USE_READLINE)/0/g' src/luaconf.h.orig >src/luaconf.h" + "sed -e 's/defined(LUA_USE_READLINE)/0/g' src/luaconf.h.orig >src/luaconf.h", + "sed -i.orig -e '/^linux:/{n;s/-lreadline//g;s/-lhistory//g;s/-lncurses//g}' src/Makefile" ], "build-commands": [ "make PLAT=linux INSTALL_TOP=\"$PREFIX\"" -- cgit v1.2.1