mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-12-13 18:12:26 +02:00
d114db436c
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19368 3c298f89-4303-0410-b956-a3cf2f4a3e73
22 lines
800 B
Diff
22 lines
800 B
Diff
--- a/util/domd
|
|
+++ b/util/domd
|
|
@@ -14,7 +14,8 @@ if [ "$MAKEDEPEND" = "" ]; then MAKEDEPE
|
|
cp Makefile Makefile.save
|
|
# fake the presence of Kerberos
|
|
touch $TOP/krb5.h
|
|
-if [ "$MAKEDEPEND" = "gcc" ]; then
|
|
+D=${MAKEDEPEND/%*gcc/gcc}
|
|
+if [ "$D" = "gcc" ]; then
|
|
args=""
|
|
while [ $# -gt 0 ]; do
|
|
if [ "$1" != "--" ]; then args="$args $1"; fi
|
|
@@ -22,7 +23,7 @@ if [ "$MAKEDEPEND" = "gcc" ]; then
|
|
done
|
|
sed -e '/^# DO NOT DELETE.*/,$d' < Makefile > Makefile.tmp
|
|
echo '# DO NOT DELETE THIS LINE -- make depend depends on it.' >> Makefile.tmp
|
|
- ${CC:-gcc} -D OPENSSL_DOING_MAKEDEPEND -M $args >> Makefile.tmp
|
|
+ ${MAKEDEPEND} -D OPENSSL_DOING_MAKEDEPEND -M $args >> Makefile.tmp
|
|
${PERL} $TOP/util/clean-depend.pl < Makefile.tmp > Makefile.new
|
|
rm -f Makefile.tmp
|
|
else
|