Moved checkdpadd target to where it logically belongs.
This commit is contained in:
parent
badb7c1c6b
commit
6e02167b57
@ -150,3 +150,25 @@ cleandepend:
|
||||
.endif
|
||||
.endif
|
||||
.endif
|
||||
|
||||
.if !target(checkdpadd) && (defined(DPADD) || defined(LDADD))
|
||||
checkdpadd:
|
||||
.if ${OBJFORMAT} != aout
|
||||
@ldadd=`echo \`for lib in ${DPADD} ; do \
|
||||
echo $$lib | sed 's;^/usr/lib/lib\(.*\)\.a;-l\1;' ; \
|
||||
done \`` ; \
|
||||
ldadd1=`echo ${LDADD}` ; \
|
||||
if [ "$$ldadd" != "$$ldadd1" ] ; then \
|
||||
echo ${.CURDIR} ; \
|
||||
echo "DPADD -> $$ldadd" ; \
|
||||
echo "LDADD -> $$ldadd1" ; \
|
||||
fi
|
||||
.else
|
||||
@dpadd=`echo \`ld -Bstatic -f ${LDADD}\`` ; \
|
||||
if [ "$$dpadd" != "${DPADD}" ] ; then \
|
||||
echo ${.CURDIR} ; \
|
||||
echo "LDADD -> $$dpadd" ; \
|
||||
echo "DPADD = ${DPADD}" ; \
|
||||
fi
|
||||
.endif
|
||||
.endif
|
||||
|
@ -126,31 +126,6 @@ clean:
|
||||
.endif
|
||||
.endif
|
||||
|
||||
.if !target(checkdpadd)
|
||||
checkdpadd:
|
||||
.if (defined(DPADD) || defined(LDADD))
|
||||
checkdpadd:
|
||||
.if ${OBJFORMAT} != aout
|
||||
@ldadd=`echo \`for lib in ${DPADD} ; do \
|
||||
echo $$lib | sed 's;^/usr/lib/lib\(.*\)\.a;-l\1;' ; \
|
||||
done \`` ; \
|
||||
ldadd1=`echo ${LDADD}` ; \
|
||||
if [ "$$ldadd" != "$$ldadd1" ] ; then \
|
||||
echo ${.CURDIR} ; \
|
||||
echo "DPADD -> $$ldadd" ; \
|
||||
echo "LDADD -> $$ldadd1" ; \
|
||||
fi
|
||||
.else
|
||||
@dpadd=`echo \`ld -Bstatic -f ${LDADD}\`` ; \
|
||||
if [ "$$dpadd" != "${DPADD}" ] ; then \
|
||||
echo ${.CURDIR} ; \
|
||||
echo "LDADD -> $$dpadd" ; \
|
||||
echo "DPADD = ${DPADD}" ; \
|
||||
fi
|
||||
.endif
|
||||
.endif
|
||||
.endif
|
||||
|
||||
cleandir: cleanobj
|
||||
|
||||
DISTRIBUTION?= base
|
||||
|
Loading…
Reference in New Issue
Block a user