mirror of
https://github.com/opnsense/src.git
synced 2026-04-08 10:53:24 -04:00
source upgrades by falling back to GNU ar(1) as necessary. Option WITH_BSDAR is gone. Option _WITH_GNUAR to aid in upgrades is *not* supposed to be set by the user. Stop bootstrapping BSD ar(1) on the next __FreeBSD_version bump, as there are no known bugs in it. Bump __FreeBSD_version to anticipate this and to flag the switch to BSD ar(1), should it be needed for something. Input from: obrien, des, kaiw
27 lines
574 B
Makefile
27 lines
574 B
Makefile
# $FreeBSD$
|
|
|
|
.include "../Makefile.inc0"
|
|
|
|
.PATH: ${SRCDIR}/binutils ${SRCDIR}/binutils/doc
|
|
|
|
.if !defined(_WITH_GNUAR)
|
|
PROGNAME= gnu-ranlib
|
|
MAN= gnu-ranlib.1
|
|
gnu-ranlib.1: ranlib.1
|
|
cat ${.ALLSRC} > ${.TARGET}
|
|
CLEANFILES+= gnu-ranlib.1
|
|
.endif
|
|
|
|
PROG= ranlib
|
|
SRCS= ar.c is-ranlib.c
|
|
CFLAGS+= -D_GNU_SOURCE
|
|
CFLAGS+= -I${.CURDIR}/${RELTOP}/libbinutils
|
|
CFLAGS+= -I${SRCDIR}/binutils
|
|
CFLAGS+= -I${SRCDIR}/bfd
|
|
NO_SHARED?= yes
|
|
DPADD= ${RELTOP}/libbinutils/libbinutils.a
|
|
DPADD+= ${RELTOP}/libbfd/libbfd.a
|
|
DPADD+= ${RELTOP}/libiberty/libiberty.a
|
|
LDADD= ${DPADD}
|
|
|
|
.include <bsd.prog.mk>
|