summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Maw <richard.maw@codethink.co.uk>2012-05-31 16:03:27 +0100
committerRichard Maw <richard.maw@codethink.co.uk>2012-05-31 16:03:27 +0100
commite508b3149e88a6b1445b7e1412a7b715c0418dd5 (patch)
tree7994d237d6affc6feb57212da3dec280709fb8b7
parent4f9115eae7c6a96a60f8913da56b5d6310c17ef6 (diff)
downloadlua-e508b3149e88a6b1445b7e1412a7b715c0418dd5.tar.gz
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.
-rw-r--r--lua.morph3
1 files changed, 2 insertions, 1 deletions
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\""