aboutsummaryrefslogtreecommitdiffstats
path: root/util/domd
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2002-10-09 13:25:12 +0000
committerRichard Levitte <levitte@openssl.org>2002-10-09 13:25:12 +0000
commit001ab3abad45752c13af5396a47551f46a6ebfdb (patch)
tree67e341e7479c47a5859e09f40d15cdf5898c8102 /util/domd
parentec8ad2bb9603379651bf9196ac28593cc2360c77 (diff)
downloadopenssl-001ab3abad45752c13af5396a47551f46a6ebfdb.tar.gz
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