Moved checkdpadd target to where it logically belongs.
This commit is contained in:
parent
badb7c1c6b
commit
6e02167b57
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=99344
@ -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