Skip to content
Snippets Groups Projects
Commit 198ab646 authored by sof's avatar sof
Browse files

[project @ 1998-04-17 12:19:24 by sof]

Don't feed mkdependC -D__GNUC__ + fix-fix to mkdependC
parent 7161da0c
No related merge requests found
...@@ -14,10 +14,7 @@ ifneq "$(HAVE_READLINE)" "YES" ...@@ -14,10 +14,7 @@ ifneq "$(HAVE_READLINE)" "YES"
C_SRCS := $(filter-out ghcReadline.c,$(C_SRCS)) C_SRCS := $(filter-out ghcReadline.c,$(C_SRCS))
endif endif
# ToDo: properly SRC_MKDEPENDC_OPTS += -I$(GHC_INCLUDE_DIR)
# -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_CC_OPTS += -I$(GHC_INCLUDE_DIR) SRC_CC_OPTS += -I$(GHC_INCLUDE_DIR)
LIBRARY=libHSmisc_cbits.a LIBRARY=libHSmisc_cbits.a
......
...@@ -28,7 +28,7 @@ if ( $ENV{'TMPDIR'} ) { # where to make tmp file names ...@@ -28,7 +28,7 @@ if ( $ENV{'TMPDIR'} ) { # where to make tmp file names
$ENV{'TMPDIR'} = "${TMPDIR}"; # set the env var as well $ENV{'TMPDIR'} = "${TMPDIR}"; # set the env var as well
} }
$tempfile = "$Tmp_prefix.i"; $tempfile = '';
sub quit_upon_signal { sub quit_upon_signal {
if (-f $tempfile) { if (-f $tempfile) {
...@@ -152,6 +152,7 @@ sub slurp_file { # follows an example in the `open' item in perl man page ...@@ -152,6 +152,7 @@ sub slurp_file { # follows an example in the `open' item in perl man page
$fname = &tidy_dir_names($fname); $fname = &tidy_dir_names($fname);
$tempfile = "$Tmp_prefix.i";
# ${CPP} better be 'gcc -E', or the -x option will fail... # ${CPP} better be 'gcc -E', or the -x option will fail...
$result = system("${CPP} $Include_dirs @Defines -x c $fname -o $tempfile"); $result = system("${CPP} $Include_dirs @Defines -x c $fname -o $tempfile");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment