diff options
author | Richard Maw <richard.maw@codethink.co.uk> | 2012-05-31 16:03:27 +0100 |
---|---|---|
committer | Richard Maw <richard.maw@codethink.co.uk> | 2012-05-31 16:03:27 +0100 |
commit | e508b3149e88a6b1445b7e1412a7b715c0418dd5 (patch) | |
tree | 7994d237d6affc6feb57212da3dec280709fb8b7 | |
parent | 4f9115eae7c6a96a60f8913da56b5d6310c17ef6 (diff) | |
download | lua-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.morph | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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\"" |