aboutsummaryrefslogtreecommitdiff
path: root/shells
diff options
context:
space:
mode:
authorAdam Weinberger <adamw@FreeBSD.org>2014-08-16 16:45:37 +0000
committerAdam Weinberger <adamw@FreeBSD.org>2014-08-16 16:45:37 +0000
commit1399aac2c12d418c64a9db1f9af5ef5b5079f03c (patch)
tree936b4412216fccc4abbd4473a65d0caecff54cfa /shells
parent595fcc53ed1593f450b1b3418b579b4af253156a (diff)
downloadports-1399aac2c12d418c64a9db1f9af5ef5b5079f03c.tar.gz
ports-1399aac2c12d418c64a9db1f9af5ef5b5079f03c.zip
Notes
Diffstat (limited to 'shells')
-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