aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTim Kientzle <kientzle@FreeBSD.org>2008-05-26 17:17:43 +0000
committerTim Kientzle <kientzle@FreeBSD.org>2008-05-26 17:17:43 +0000
commit4d6b2b93cba259da752781cb44e3242437d934a0 (patch)
treeb8ed21b40d2727ba3e6a388cafcb7c7af67e9d74
parent1e38350b0a926ab2f42183f7798eb17d528b89ae (diff)
downloadsrc-4d6b2b93cba259da752781cb44e3242437d934a0.tar.gz
src-4d6b2b93cba259da752781cb44e3242437d934a0.zip
bsdcpio is always installed as 'bsdcpio', symlink it to 'cpio'
only if WITH_BSDCPIO is defined.
Notes
Notes: svn path=/head/; revision=179324
-rw-r--r--usr.bin/cpio/Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.bin/cpio/Makefile b/usr.bin/cpio/Makefile
index 3685f1874956..cc5c1065f251 100644
--- a/usr.bin/cpio/Makefile
+++ b/usr.bin/cpio/Makefile
@@ -6,10 +6,13 @@ SRCS= cpio.c cmdline.c err.c matching.c pathmatch.c
WARNS?= 6
DPADD= ${LIBARCHIVE} ${LIBZ} ${LIBBZ2}
CFLAGS+= -DBSDCPIO_VERSION_STRING=\"${BSDCPIO_VERSION_STRING}\"
-CFLAGS+= -DPLATFORM_CONFIG_H=\"config_freebsd.h\" -O0 -g
+CFLAGS+= -DPLATFORM_CONFIG_H=\"config_freebsd.h\"
LDADD+= -larchive -lz -lbz2
+
+.if defined(WITH_BSDCPIO)
SYMLINKS=bsdcpio ${BINDIR}/cpio
MLINKS= bsdcpio.1 cpio.1
+.endif
.PHONY: check test