summaryrefslogtreecommitdiffstats
path: root/util/domd
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2002-10-09 13:21:33 +0000
committerRichard Levitte <levitte@openssl.org>2002-10-09 13:21:33 +0000
commitff90d659e65c0175787f7f964f3a0b96a029a1f8 (patch)
treeb0a02e4bcfc78bb2e61fa7fc8a2f28618a00337e /util/domd
parent8f841c70c45850f2ff41a99f228a2a49f47b636a (diff)
Use double dashes so makedepend doesn't misunderstand the flags we
give it. For 0.9.7 and up, that means util/domd needs to remove those double dashes from the argument list when gcc is used to find the dependencies.
Diffstat (limited to 'util/domd')
-rwxr-xr-xutil/domd7
1 files changed, 6 insertions, 1 deletions
diff --git a/util/domd b/util/domd
index 8cbe383c16..49310bbdd1 100755
--- a/util/domd
+++ b/util/domd
@@ -15,9 +15,14 @@ cp Makefile.ssl Makefile.save
# fake the presence of Kerberos
touch $TOP/krb5.h
if [ "$MAKEDEPEND" = "gcc" ]; then
+ args=""
+ while [ $# -gt 0 ]; do
+ if [ "$1" != "--" ]; then args="$args $1"; fi
+ shift
+ done
sed -e '/^# DO NOT DELETE.*/,$d' < Makefile.ssl > Makefile.tmp
echo '# DO NOT DELETE THIS LINE -- make depend depends on it.' >> Makefile.tmp
- gcc -D OPENSSL_DOING_MAKEDEPEND -M $@ >> Makefile.tmp
+ gcc -D OPENSSL_DOING_MAKEDEPEND -M $args >> Makefile.tmp
${PERL} $TOP/util/clean-depend.pl < Makefile.tmp > Makefile.new
rm -f Makefile.tmp
else