[Date Prev][Date Next] [Chronological] [Thread] [Top]

mkdep compiler setting in openldap-981116



Hi,

i noticed that the compiler used in the mkdep script is rather
hardwired to 'cc',  bad luck for gcc users...
A quick fix is to change the script to take CC from the environment
if it is set there:

*** mkdep~ Sun Aug  9 00:43:17 1998
--- mkdep Sun Nov 22 17:32:41 1998
***************
*** 25,31 ****
  
  MAKE=Makefile      # default makefile name is "Makefile"
  NOSLASH="no"    # by default, / dependencies are included
! CC=cc    # default compiler is cc
  
  while :
   do case "$1" in
--- 25,31 ----
  
  MAKE=Makefile      # default makefile name is "Makefile"
  NOSLASH="no"    # by default, / dependencies are included
! CC=${CC-cc}     # default compiler is cc
  
  while :
   do case "$1" in


Much better (but too much work for me right now :-) is to
invoke the mkdep script with the added argument '-c $(CC)' in the
Makefiles, so that the autoconfigured compiler will always be used.

Regards

J.Pietschmann