aboutsummaryrefslogtreecommitdiff
path: root/libexec
diff options
context:
space:
mode:
authorGlen Barber <gjb@FreeBSD.org>2016-04-04 23:55:32 +0000
committerGlen Barber <gjb@FreeBSD.org>2016-04-04 23:55:32 +0000
commitd60840138f6292c1ceeb177ebe797eca0b2749da (patch)
treea027fe5a27446f32854d6a07b34b5f2a992bf283 /libexec
parentb0b644948c7ed5773b80b8060bb08cb39c024ef5 (diff)
parent8e8df7d50ad7f2b0bb1cb0b8c18242ca511635c3 (diff)
Notes
Diffstat (limited to 'libexec')
-rw-r--r--libexec/dma/Makefile.inc2
-rw-r--r--libexec/dma/dmagent/Makefile7
-rw-r--r--libexec/rtld-elf/Makefile3
3 files changed, 11 insertions, 1 deletions
diff --git a/libexec/dma/Makefile.inc b/libexec/dma/Makefile.inc
index 4db4bf106b4f6..ec5eba84d20b1 100644
--- a/libexec/dma/Makefile.inc
+++ b/libexec/dma/Makefile.inc
@@ -4,7 +4,7 @@
DMA_SOURCES= ${.CURDIR}/../../../contrib/dma
.PATH: ${DMA_SOURCES}
-CFLAGS= -I${DMA_SOURCES} \
+CFLAGS+= -I${DMA_SOURCES} \
-DHAVE_REALLOCF -DHAVE_STRLCPY -DHAVE_GETPROGNAME \
-DCONF_PATH='"/etc/dma"' \
-DLIBEXEC_PATH='"/usr/libexec"' -DDMA_VERSION='"v0.10"' \
diff --git a/libexec/dma/dmagent/Makefile b/libexec/dma/dmagent/Makefile
index 6f7e8b0648edc..187517736e627 100644
--- a/libexec/dma/dmagent/Makefile
+++ b/libexec/dma/dmagent/Makefile
@@ -1,5 +1,7 @@
# $FreeBSD$
+.include <src.opts.mk>
+
LIBADD= ssl crypto
PROG= dma
@@ -22,6 +24,11 @@ YFLAGS+= -i
CLEANFILES= aliases_parse.i
FILES= mailer.conf
FILESDIR= ${SHAREDIR}/examples/dma
+.if ${MK_SENDMAIL} == no
+CONFGROUPS= CONFS MAILER
+MAILERDIR= /etc/mail
+MAILER= mailer.conf
+.endif
BINMODE= 2555
diff --git a/libexec/rtld-elf/Makefile b/libexec/rtld-elf/Makefile
index e2ebcce5f857f..6ae9130121faf 100644
--- a/libexec/rtld-elf/Makefile
+++ b/libexec/rtld-elf/Makefile
@@ -49,6 +49,9 @@ CFLAGS+= -fvisibility=hidden
.endif
LDFLAGS+= -shared -Wl,-Bsymbolic
LIBADD= c_pic
+.if ${MK_TOOLCHAIN} == "no"
+LDFLAGS+= -L${LIBCDIR}
+.endif
.if ${MACHINE_CPUARCH} == "arm"
# Some of the required math functions (div & mod) are implemented in