Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
c7b6fe94
Commit
c7b6fe94
authored
May 20, 2004
by
mthomas
Browse files
[project @ 2004-05-20 07:15:47 by mthomas]
Install MinGW32 gcc and perl.
parent
9d55b184
Changes
4
Hide whitespace changes
Inline
Side-by-side
Makefile
View file @
c7b6fe94
...
...
@@ -121,6 +121,28 @@ install ::
fi
;
\
done
# If installing on Windows with MinGW32, copy the gcc compiler, headers and libs
# and the perl interpreter and dll into the GHC prefix directory.
# Gcc and Perl source locations derived from configuration data.
ifeq
"$(TARGETPLATFORM)" "i386-unknown-mingw32"
ifneq
"$(WhatGccIsCalled)" ""
install
::
-
mkdir
$(prefix)
/gcc-lib
-
mkdir
$(prefix)
/include
-
mkdir
$(prefix)
/include/mingw
-
cp
-rp
$(GccDir)
../include/
*
$(prefix)
/include/mingw
-
cp
-rp
$(GccDir)
../lib/gcc-lib/mingw32/
$(GccVersion)
/
*
$(prefix)
/gcc-lib
-
cp
$(GccDir)
../lib/
*
.
*
$(prefix)
/gcc-lib
-
cp
$(GccDir)
gcc.exe
$(prefix)
-
cp
$(GccDir)
as.exe
$(prefix)
/gcc-lib
-
cp
$(GccDir)
ld.exe
$(prefix)
/gcc-lib
-
cp
$(GccDir)
dllwrap.exe
$(prefix)
/gcc-lib
-
cp
$(GccDir)
dlltool.exe
$(prefix)
/gcc-lib
-
cp
$(GhcDir)
../perl.exe
$(prefix)
-
cp
$(GhcDir)
../perl56.dll
$(prefix)
endif
endif
install-docs
::
@
case
'
${MFLAGS}
'
in
*
-[ik]
*
)
x_on_err
=
0
;;
*
-r
*
[
ik]
*
)
x_on_err
=
0
;;
*
)
x_on_err
=
1
;;
esac
;
\
for
i
in
$(
filter-out
$(ProjectsDontInstall)
,
$(SUBDIRS)
)
;
do
\
...
...
aclocal.m4
View file @
c7b6fe94
...
...
@@ -569,6 +569,8 @@ fi
])
HaveGcc=`echo $fptools_cv_have_gcc | sed 'y/yesno/YESNO/'`
AC_SUBST(HaveGcc)
GccVersion=`gcc --version | grep mingw | cut -f 3 -d ' '`
AC_SUBST(GccVersion)
])
dnl
...
...
configure.ac
View file @
c7b6fe94
...
...
@@ -613,7 +613,12 @@ AC_ARG_WITH(gcc,
fi
fi;
CC="$withval"],
[WhatGccIsCalled="gcc"]
[if test "x$HostPlatform" = "xi386-unknown-mingw32"
then
WhatGccIsCalled=`which gcc`
else
WhatGccIsCalled="gcc"
fi;]
)
AC_SUBST(WhatGccIsCalled)
...
...
mk/config.mk.in
View file @
c7b6fe94
...
...
@@ -713,6 +713,7 @@ HSC2HS_PREFIX = $(FPTOOLS_TOP)/ghc/utils/hsc2hs/
# (because the version numbers have to be calculated).
GHC
=
@WithGhc@
GhcDir
=
$(
dir
$(GHC)
)
GhcVersion
=
@GhcVersion@
GhcMajVersion
=
@GhcMajVersion@
GhcMinVersion
=
@GhcMinVersion@
...
...
@@ -752,11 +753,13 @@ GHC_STAGE3 = $(FPTOOLS_TOP)/ghc/compiler/stage3/ghc-inplace
HaveGcc
=
@HaveGcc@
UseGcc
=
YES
WhatGccIsCalled
=
@WhatGccIsCalled@
GccVersion
=
@GccVersion@
ifeq
"$(strip $(HaveGcc))" "YES"
ifneq
"$(strip $(UseGcc))" "YES"
CC
=
cc
else
CC
=
$(WhatGccIsCalled)
GccDir
=
$(
dir
$(WhatGccIsCalled)
)
endif
endif
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment