LoginSignup
0
0

More than 5 years have passed since last update.

ncursesやreadlineなしでbashを作るとmakeで問題が発生するようです

Posted at

クロスコンパイルでミニマムなLinuxを作ってそこからセルフコンパイルでシステムを構築しようとしていたらmakeで妙なエラーが発生しました。
ncursesやreadlineなしで作ったbashを使っていると以下のようなMakefileで(echo)が失敗してexit 123で出てきてしまうようです。

a = false

b = ($(a))

all:
    if $(b); then \
      echo "yes"; \
    else \
      echo "no"; \
    fi; \
    for item in 'x y z'; do \
      (echo) || exit 123; \
    done;

幸いncursesとreadlineとbashはこの問題に引っかからずにビルドできるので、まずそれらをビルドしてインストールすれば回避できます。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0