summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2013-05-07 10:04:13 -0400
committerBrandon Philips <brandon@ifup.co>2013-05-18 18:56:17 -0700
commitea114c81449ad06fb5d30b8dab551998b1b9837a (patch)
tree989f5f80d9d84cb237740380ae4c336040102458
parent9208f80f46da17a3411fdc6a0d4011e87a45a99c (diff)
downloadattr-ea114c81449ad06fb5d30b8dab551998b1b9837a.tar.gz
attr: use SHELL from configure
If /bin/sh is not a functional enough shell, configure will select a SHELL of /bin/bash or better. But the current build helpers always hardcode /bin/sh, so if libtool itself configures itself for /bin/bash, things will fail when it attempts to do: SHELL = /bin/sh LIBTOOL = $(SHELL) .../libtool ... eval: 1: base_compile+= -pipe: not found ... So rather than hardcoding SHELL to /bin/sh, set it to @SHELL@ and let configure find a good value for us. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
-rw-r--r--include/builddefs.in1
-rw-r--r--include/buildmacros1
2 files changed, 1 insertions, 1 deletions
diff --git a/include/builddefs.in b/include/builddefs.in
index a864861..d9931db 100644
--- a/include/builddefs.in
+++ b/include/builddefs.in
@@ -58,6 +58,7 @@ MAKE = @make@
ECHO = @echo@
SORT = @sort@
LN_S = @LN_S@
+SHELL = @SHELL@
LIBTOOL = @LIBTOOL@
MAKEDEPEND = @makedepend@
diff --git a/include/buildmacros b/include/buildmacros
index ab89182..8efb32e 100644
--- a/include/buildmacros
+++ b/include/buildmacros
@@ -42,7 +42,6 @@ OBJECTS = $(ASFILES:.s=.o) \
INSTALL = $(TOPDIR)/include/install-sh -o $(PKG_USER) -g $(PKG_GROUP)
-SHELL = /bin/sh
IMAGES_DIR = $(TOPDIR)/all-images
DIST_DIR = $(TOPDIR)/dist