diff --git a/gnu/usr.bin/binutils/ar/Makefile b/gnu/usr.bin/binutils/ar/Makefile index 59031869a25a..090a16fa8235 100644 --- a/gnu/usr.bin/binutils/ar/Makefile +++ b/gnu/usr.bin/binutils/ar/Makefile @@ -4,7 +4,12 @@ .PATH: ${SRCDIR}/binutils ${SRCDIR}/binutils/doc +.if defined(WITH_GNUAR) PROG= ar +.else +PROG= gar +MAN= ar.1 +.endif SRCS= ar.c not-ranlib.c CFLAGS+= -D_GNU_SOURCE CFLAGS+= -I${.CURDIR}/${RELTOP}/libbinutils diff --git a/gnu/usr.bin/binutils/ranlib/Makefile b/gnu/usr.bin/binutils/ranlib/Makefile index 8edfa01bb13b..68d230d38663 100644 --- a/gnu/usr.bin/binutils/ranlib/Makefile +++ b/gnu/usr.bin/binutils/ranlib/Makefile @@ -4,7 +4,12 @@ .PATH: ${SRCDIR}/binutils ${SRCDIR}/binutils/doc +.if defined(WITH_GNUAR) PROG= ranlib +.else +PROG= granlib +MAN= ranlib.1 +.endif SRCS= ar.c is-ranlib.c CFLAGS+= -D_GNU_SOURCE CFLAGS+= -I${.CURDIR}/${RELTOP}/libbinutils diff --git a/sys/sys/param.h b/sys/sys/param.h index 9b6379929e50..a9d3a59fdbe5 100644 --- a/sys/sys/param.h +++ b/sys/sys/param.h @@ -57,7 +57,7 @@ * is created, otherwise 1. */ #undef __FreeBSD_version -#define __FreeBSD_version 800021 /* Master, propagated to newvers */ +#define __FreeBSD_version 800022 /* Master, propagated to newvers */ #ifndef LOCORE #include diff --git a/usr.bin/Makefile b/usr.bin/Makefile index 39ea1504b354..f954a1e3abac 100644 --- a/usr.bin/Makefile +++ b/usr.bin/Makefile @@ -232,6 +232,10 @@ SUBDIR= alias \ ${_ypmatch} \ ${_ypwhich} +.if !defined(WITH_GNUAR) +SUBDIR+= ar +.endif + .if ${MACHINE_ARCH} != "arm" _truss= truss .endif