[project @ 1998-04-17 12:19:24 by sof]
authorsof <unknown>
Fri, 17 Apr 1998 12:19:28 +0000 (12:19 +0000)
committersof <unknown>
Fri, 17 Apr 1998 12:19:28 +0000 (12:19 +0000)
Don't feed mkdependC -D__GNUC__ + fix-fix to mkdependC

ghc/lib/misc/cbits/Makefile
glafp-utils/mkdependC/mkdependC.prl

index 2ab4bcf..be6601f 100644 (file)
@@ -14,10 +14,7 @@ ifneq "$(HAVE_READLINE)" "YES"
   C_SRCS := $(filter-out ghcReadline.c,$(C_SRCS))
 endif
 
-# ToDo: properly
-# -D__GNUC__ : added to turn off noise from byteorder.h with 2.7.2 / Solaris-2.3
-#
-SRC_MKDEPENDC_OPTS += -I$(GHC_INCLUDE_DIR) -D__GNUC__
+SRC_MKDEPENDC_OPTS += -I$(GHC_INCLUDE_DIR)
 SRC_CC_OPTS += -I$(GHC_INCLUDE_DIR)
 
 LIBRARY=libHSmisc_cbits.a
index 686b59d..5f00def 100644 (file)
@@ -28,7 +28,7 @@ if ( $ENV{'TMPDIR'} ) { # where to make tmp file names
     $ENV{'TMPDIR'} = "${TMPDIR}"; # set the env var as well
 }
 
-$tempfile = "$Tmp_prefix.i";
+$tempfile = '';
 
 sub quit_upon_signal { 
   if (-f $tempfile) {
@@ -152,6 +152,7 @@ sub slurp_file { # follows an example in the `open' item in perl man page
 
     $fname = &tidy_dir_names($fname);
 
+    $tempfile = "$Tmp_prefix.i";
 
     # ${CPP} better be 'gcc -E', or the -x option will fail...
     $result = system("${CPP} $Include_dirs @Defines -x c $fname -o $tempfile");