diff --git a/ghc/lib/misc/cbits/Makefile b/ghc/lib/misc/cbits/Makefile index 2ab4bcfd6e65ea16f2f8a723b231b57978e52e97..be6601f20046494b173df98b97ba36bae09e6431 100644 --- a/ghc/lib/misc/cbits/Makefile +++ b/ghc/lib/misc/cbits/Makefile @@ -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 diff --git a/glafp-utils/mkdependC/mkdependC.prl b/glafp-utils/mkdependC/mkdependC.prl index 686b59dba73593aa60809c37bd96c62101a1ab1b..5f00def2bfcfa5840a1353d729ebd9ba3370103a 100644 --- a/glafp-utils/mkdependC/mkdependC.prl +++ b/glafp-utils/mkdependC/mkdependC.prl @@ -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");