Fix installation issues with cross compiling + honour Stage1Only properly
This patch fixes three problems that occur during a cross compile to embedded Linux (details below):
- arm-ldu-linux-gnueabi-ghc-pkg gets a symlink but no wrapper script upon installation, and this causes the installation to break later when it tries to run it.
- hp2ps doesn't get the prefix like the other commands do (i.e. arm-ldu-linux-gnueabi-ghc- is missing from the name of the executable). This is just for consistency.
- The stage2 compiler is built when Stage1Only is set to YES (though it does not get installed). This makes the build take longer than it needs to.
mk/build.mk:
SplitObjs = NO HADDOCK_DOCS = NO BUILD_DOCBOOK_HTML = NO BUILD_DOCBOOK_PS = NO BUILD_DOCBOOK_PDF = NO INTEGER_LIBRARY = integer-simple Stage1Only = YES
configure command:
- /configure --target=arm-ldu-linux-gnueabi --prefix=/usr/local/ghc-ldu
Trac metadata
| Trac field | Value |
|---|---|
| Version | 7.7 |
| Type | Bug |
| TypeOfFailure | OtherFailure |
| Priority | normal |
| Resolution | Unresolved |
| Component | Compiler |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | |
| Operating system | |
| Architecture |