Don't feed mkdependC -D__GNUC__ + fix-fix to mkdependC
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
$ENV{'TMPDIR'} = "${TMPDIR}"; # set the env var as well
}
-$tempfile = "$Tmp_prefix.i";
+$tempfile = '';
sub quit_upon_signal {
if (-f $tempfile) {
$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");