diff options
author | Richard Levitte <levitte@openssl.org> | 2002-10-09 13:25:12 +0000 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2002-10-09 13:25:12 +0000 |
commit | 001ab3abad45752c13af5396a47551f46a6ebfdb (patch) | |
tree | 67e341e7479c47a5859e09f40d15cdf5898c8102 /util/domd | |
parent | ec8ad2bb9603379651bf9196ac28593cc2360c77 (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-x | util/domd | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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 |