From 2fe3a9dbbbee635b22d0f01de13a5e85c7f05f70 Mon Sep 17 00:00:00 2001 From: "Yann E. MORIN\"" Date: Wed, 12 Sep 2007 17:35:07 +0000 Subject: Don't use /bin/sh for crosstool-NG build scripts, we want /bin/bash! Don't hardcode ncurses include and link flags. diff --git a/kconfig/kconfig.mk b/kconfig/kconfig.mk index cf6868d..fe234a5 100644 --- a/kconfig/kconfig.mk +++ b/kconfig/kconfig.mk @@ -94,7 +94,8 @@ $(obj): $(obj)/mconf:: $(SHIPPED) $(CT_LIB_DIR)/kconfig/mconf.c @$(HOST_CC) $(CFLAGS) -o $@ $(CT_LIB_DIR)/kconfig/{mconf.c,zconf.tab.c,lxdialog/*.c} \ - -lcurses "-DCURSES_LOC=" + $(shell $(CT_LIB_DIR)/kconfig/lxdialog/check-lxdialog.sh -ccflags) \ + $(shell $(CT_LIB_DIR)/kconfig/lxdialog/check-lxdialog.sh -ldflags $(HOST_CC)) $(obj)/conf:: $(SHIPPED) $(CT_LIB_DIR)/kconfig/conf.c @$(HOST_CC) $(CFLAGS) -o $@ $(CT_LIB_DIR)/kconfig/{conf.c,zconf.tab.c} diff --git a/kconfig/lxdialog/check-lxdialog.sh b/kconfig/lxdialog/check-lxdialog.sh old mode 100644 new mode 100755 diff --git a/tools/addToolVersion.sh b/tools/addToolVersion.sh index 8351d67..78e029d 100755 --- a/tools/addToolVersion.sh +++ b/tools/addToolVersion.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # Adds a new version to one of the toolchain component myname="$0" diff --git a/tools/extract-config.sh b/tools/extract-config.sh index b5c77c6..3864652 100755 --- a/tools/extract-config.sh +++ b/tools/extract-config.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # This scripts extracts a crosstool-NG configuration from the log file # of a toolchain build with crosstool-NG. -- cgit v0.10.2-6-g49f6