Really finish the removal of ${LDDESTDIR} in bsd.lib.mk,v 1.55.
bsd.lib.mk,v 1.101 only did that partly.
This commit is contained in:
parent
f8b318ce58
commit
de0d6977f9
@ -144,7 +144,7 @@ checkdpadd:
|
||||
echo "LDADD -> $$ldadd1" ; \
|
||||
fi
|
||||
.else
|
||||
@dpadd=`echo \`ld -Bstatic -f ${LDDESTDIR} ${LDADD}\`` ; \
|
||||
@dpadd=`echo \`ld -Bstatic -f ${LDADD}\`` ; \
|
||||
if [ "$$dpadd" != "${DPADD}" ] ; then \
|
||||
echo ${.CURDIR} ; \
|
||||
echo "LDADD -> $$dpadd" ; \
|
||||
|
@ -32,7 +32,7 @@ LDADD+= ${OBJCLIBS}
|
||||
OBJS+= ${SRCS:N*.h:R:S/$/.o/g}
|
||||
|
||||
${PROG}: ${OBJS}
|
||||
${CC} ${CFLAGS} ${LDFLAGS} -o ${.TARGET} ${OBJS} ${LDDESTDIR} ${LDADD}
|
||||
${CC} ${CFLAGS} ${LDFLAGS} -o ${.TARGET} ${OBJS} ${LDADD}
|
||||
|
||||
.else !defined(SRCS)
|
||||
|
||||
@ -47,7 +47,7 @@ SRCS= ${PROG}.c
|
||||
OBJS= ${PROG}.o
|
||||
|
||||
${PROG}: ${OBJS}
|
||||
${CC} ${CFLAGS} ${LDFLAGS} -o ${.TARGET} ${OBJS} ${LDDESTDIR} ${LDADD}
|
||||
${CC} ${CFLAGS} ${LDFLAGS} -o ${.TARGET} ${OBJS} ${LDADD}
|
||||
.endif
|
||||
|
||||
.endif
|
||||
@ -74,7 +74,7 @@ CLEANFILES+= ${PROG} ${OBJS}
|
||||
.if defined(PROG)
|
||||
_EXTRADEPEND:
|
||||
.if ${OBJFORMAT} == aout
|
||||
echo ${PROG}: `${CC} -Wl,-f ${CFLAGS} ${LDFLAGS} ${LDDESTDIR} \
|
||||
echo ${PROG}: `${CC} -Wl,-f ${CFLAGS} ${LDFLAGS} \
|
||||
${LDADD:S/^/-Wl,/}` >> ${DEPENDFILE}
|
||||
.else
|
||||
echo ${PROG}: ${LIBC} ${DPADD} >> ${DEPENDFILE}
|
||||
|
Loading…
x
Reference in New Issue
Block a user