aboutsummaryrefslogtreecommitdiffstats
path: root/shells/esh
diff options
context:
space:
mode:
authoradamw <adamw@FreeBSD.org>2014-08-17 00:45:37 +0800
committeradamw <adamw@FreeBSD.org>2014-08-17 00:45:37 +0800
commit11223bcc8da309cdac662505b2b6b06e8da20c64 (patch)
tree936b4412216fccc4abbd4473a65d0caecff54cfa /shells/esh
parent6930b16c2857b7c7f641eacee39a94526b179fc0 (diff)
downloadfreebsd-ports-gnome-11223bcc8da309cdac662505b2b6b06e8da20c64.tar.gz
freebsd-ports-gnome-11223bcc8da309cdac662505b2b6b06e8da20c64.tar.zst
freebsd-ports-gnome-11223bcc8da309cdac662505b2b6b06e8da20c64.zip
Fix build on -current.
Diffstat (limited to 'shells/esh')
-rw-r--r--shells/esh/Makefile2
-rw-r--r--shells/esh/files/patch-Makefile11
2 files changed, 12 insertions, 1 deletions
diff --git a/shells/esh/Makefile b/shells/esh/Makefile
index 1ba67b8ec46f..6af15a4e7d6e 100644
--- a/shells/esh/Makefile
+++ b/shells/esh/Makefile
@@ -14,7 +14,7 @@ LICENSE= GPLv2
WRKSRC= ${WRKDIR}/${PORTNAME}
USES= readline
-MAKE_ARGS= CC="${CC}" CFLAGS="${CFLAGS}"
+MAKE_ARGS= CC="${CC}" CFLAGS="${CFLAGS} ${CPPFLAGS}"
INFO= esh
diff --git a/shells/esh/files/patch-Makefile b/shells/esh/files/patch-Makefile
new file mode 100644
index 000000000000..bee505c9c4b6
--- /dev/null
+++ b/shells/esh/files/patch-Makefile
@@ -0,0 +1,11 @@
+--- Makefile.orig 2014-08-16 12:44:43.000000000 -0400
++++ Makefile 2014-08-16 12:44:58.000000000 -0400
+@@ -27,7 +27,7 @@
+ VERS=0.8.5
+
+ all: $(OBJS)
+- $(CC) $(OBJS) $(LIB) -o esh
++ $(CC) $(OBJS) $(LIB) -o esh ${LDFLAGS}
+
+ backup:
+ cp -f Makefile *.[ch] /home/backup/esh