Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Alex D
GHC
Commits
53684556
Commit
53684556
authored
May 21, 2009
by
Ian Lynagh
Browse files
Set C compiler and linker flags correctly for OS X 64
parent
d42eeec3
Changes
2
Hide whitespace changes
Inline
Side-by-side
configure.ac
View file @
53684556
...
...
@@ -371,7 +371,10 @@ x86_64-apple-darwin*)
HostArch_CPP='x86_64'
HostVendor_CPP='apple'
HostOS_CPP='darwin'
soext='.dylib'
soext='.dylib'
# By default, gcc makes 32bit executables on OS X
CFLAGS="$CFLAGS -m64"
LDFLAGS="$LDFLAGS -m64"
;;
m68k-*-linux*)
HostPlatform=m68k-unknown-linux # hack again
...
...
@@ -948,7 +951,11 @@ AC_PROG_CPP
dnl ** Without optimization some INLINE trickery fails for GHCi
SRC_CC_OPTS="-O"
SRC_CC_OPTS="$SRC_CC_OPTS $CFLAGS"
SRC_LD_OPTS="$SRC_LD_OPTS $LDFLAGS"
AC_SUBST(SRC_CC_OPTS)
AC_SUBST(SRC_LD_OPTS)
dnl ** figure out how to do context diffs
FP_PROG_CONTEXT_DIFF
...
...
mk/config.mk.in
View file @
53684556
...
...
@@ -687,8 +687,9 @@ else
endif
endif
# default C compiler flags
# default C compiler
and linker
flags
SRC_CC_OPTS
=
@SRC_CC_OPTS@
SRC_LD_OPTS
=
@SRC_LD_OPTS@
ifeq
"$(TARGETPLATFORM)" "ia64-unknown-linux"
SRC_CC_OPTS
+=
-G0
...
...
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