mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-21 07:09:34 -05:00
-c xxx overrides CC_MKDEP
This commit is contained in:
parent
51a3df2ccf
commit
e9b4114344
1 changed files with 5 additions and 4 deletions
|
|
@ -32,8 +32,8 @@ NOSLASH="no" # by default, / dependencies are included
|
||||||
SRCDIR=""
|
SRCDIR=""
|
||||||
SED=cat
|
SED=cat
|
||||||
|
|
||||||
: ${CC=cc}
|
: ${CC=cc} # use cc by default
|
||||||
: ${CC_MKDEP=$CC}
|
: ${CC_MKDEP=$CC} # select default compiler to generate dependencies
|
||||||
: ${CC_MKDEP_FLAGS="-M"} # cc -M usually produces dependencies
|
: ${CC_MKDEP_FLAGS="-M"} # cc -M usually produces dependencies
|
||||||
|
|
||||||
while :
|
while :
|
||||||
|
|
@ -53,7 +53,8 @@ while :
|
||||||
SRCDIR=$2
|
SRCDIR=$2
|
||||||
shift; shift ;;
|
shift; shift ;;
|
||||||
|
|
||||||
# -c allows you to select a compiler to use (default is cc)
|
# -c allows you to select a compiler to use to generate
|
||||||
|
# dependencies. Leaves $CC alone.
|
||||||
-c)
|
-c)
|
||||||
CC_MKDEP=$2
|
CC_MKDEP=$2
|
||||||
shift; shift ;;
|
shift; shift ;;
|
||||||
|
|
@ -129,7 +130,7 @@ cat << _EOF_ >> $TMP
|
||||||
|
|
||||||
#
|
#
|
||||||
# files: $*
|
# files: $*
|
||||||
# command: $CC $CC_MKDEP_FLAGS $files
|
# command: $CC_MKDEP $CC_MKDEP_FLAGS $files
|
||||||
#
|
#
|
||||||
|
|
||||||
_EOF_
|
_EOF_
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue