Don't use /bin/sh for crosstool-NG build scripts, we want /bin/bash!

Don't hardcode ncurses include and link flags.
This commit is contained in:
Yann E. MORIN" 2007-09-12 17:35:07 +00:00
parent 8bbec81bc0
commit 2fe3a9dbbb
4 changed files with 4 additions and 3 deletions

View File

@ -94,7 +94,8 @@ $(obj):
$(obj)/mconf:: $(SHIPPED) $(CT_LIB_DIR)/kconfig/mconf.c $(obj)/mconf:: $(SHIPPED) $(CT_LIB_DIR)/kconfig/mconf.c
@$(HOST_CC) $(CFLAGS) -o $@ $(CT_LIB_DIR)/kconfig/{mconf.c,zconf.tab.c,lxdialog/*.c} \ @$(HOST_CC) $(CFLAGS) -o $@ $(CT_LIB_DIR)/kconfig/{mconf.c,zconf.tab.c,lxdialog/*.c} \
-lcurses "-DCURSES_LOC=<ncurses.h>" $(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 $(obj)/conf:: $(SHIPPED) $(CT_LIB_DIR)/kconfig/conf.c
@$(HOST_CC) $(CFLAGS) -o $@ $(CT_LIB_DIR)/kconfig/{conf.c,zconf.tab.c} @$(HOST_CC) $(CFLAGS) -o $@ $(CT_LIB_DIR)/kconfig/{conf.c,zconf.tab.c}

0
kconfig/lxdialog/check-lxdialog.sh Normal file → Executable file
View File

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/bin/bash
# Adds a new version to one of the toolchain component # Adds a new version to one of the toolchain component
myname="$0" myname="$0"

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/bin/bash
# This scripts extracts a crosstool-NG configuration from the log file # This scripts extracts a crosstool-NG configuration from the log file
# of a toolchain build with crosstool-NG. # of a toolchain build with crosstool-NG.