Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Glasgow Haskell Compiler
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Shayne Fletcher
Glasgow Haskell Compiler
Commits
ce6ff822
Commit
ce6ff822
authored
Jan 27, 2009
by
Simon Marlow
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix detection of i386 vs. x86_64 for -pc-solaris
From
#2951
parent
979fb4ab
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletion
+11
-1
config.guess
config.guess
+11
-1
No files found.
config.guess
View file @
ce6ff822
...
@@ -337,7 +337,17 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
...
@@ -337,7 +337,17 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
# Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
# Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
# This test works for both compilers.
# This test works for both compilers.
if
[
"
$CC_FOR_BUILD
"
!=
'no_compiler_found'
]
;
then
if
[
"
$CC_FOR_BUILD
"
!=
'no_compiler_found'
]
;
then
if
echo
'\n#ifdef __amd64\nIS_64BIT_ARCH\n#endif'
|
\
# bash is not able to generate correct code here
# i.e. it leaves \ns there
# so we need to use /usr/bin/echo to get what we want
# note that if config.guess is run by /bin/sh then
# this works as expected even without /usr/bin/echo
# but the problem is that configure is clever enough
# to find bash installed and then runs config.guess
# by bash instead of by /bin/sh
# It seems that using /usr/bin/echo here is the most
# portable Solaris fix
if
/usr/bin/echo
'\n#ifdef __amd64\nIS_64BIT_ARCH\n#endif'
|
\
(
CCOPTS
=
$CC_FOR_BUILD
-E
- 2>/dev/null
)
|
\
(
CCOPTS
=
$CC_FOR_BUILD
-E
- 2>/dev/null
)
|
\
grep
IS_64BIT_ARCH
>
/dev/null
grep
IS_64BIT_ARCH
>
/dev/null
then
then
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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