summaryrefslogtreecommitdiff
path: root/rts/ghc.mk
diff options
context:
space:
mode:
authorMoritz Angermann <moritz.angermann@gmail.com>2021-02-13 10:55:58 +0800
committerMarge Bot <ben+marge-bot@smart-cactus.org>2021-03-29 17:25:48 -0400
commit4421fb34b3a70db1323833337c94ac4364824124 (patch)
tree8ed3293e356c36d478edad7bcfe42b0d08a03fe3 /rts/ghc.mk
parentc30af95189c5006ac5cd10839a8ea7e8098341d5 (diff)
downloadhaskell-4421fb34b3a70db1323833337c94ac4364824124.tar.gz
[macho] improved linker with proper plt support
This is a pre-requisite for making aarch64-darwin work.
Diffstat (limited to 'rts/ghc.mk')
-rw-r--r--rts/ghc.mk11
1 files changed, 5 insertions, 6 deletions
diff --git a/rts/ghc.mk b/rts/ghc.mk
index 010146ce8a..16fd42f133 100644
--- a/rts/ghc.mk
+++ b/rts/ghc.mk
@@ -37,7 +37,7 @@ $(eval $(call all-target,rts,$(ALL_RTS_LIBS)))
# -----------------------------------------------------------------------------
# Defining the sources
-ALL_DIRS = hooks sm eventlog linker
+ALL_DIRS = hooks sm eventlog linker linker/macho
ifeq "$(TargetOS_CPP)" "mingw32"
ALL_DIRS += win32
@@ -329,8 +329,8 @@ $(eval $(call distdir-opts,rts,dist,1))
# We like plenty of warnings.
WARNING_OPTS += -Wall
WARNING_OPTS += -Wextra
-WARNING_OPTS += -Wstrict-prototypes
-WARNING_OPTS += -Wmissing-prototypes
+WARNING_OPTS += -Wstrict-prototypes
+WARNING_OPTS += -Wmissing-prototypes
WARNING_OPTS += -Wmissing-declarations
WARNING_OPTS += -Winline
WARNING_OPTS += -Wpointer-arith
@@ -346,7 +346,7 @@ WARNING_OPTS += -Wno-aggregate-return
#WARNING_OPTS += -Wshadow
#WARNING_OPTS += -Wcast-qual
-# This one seems buggy on GCC 4.1.2, which is the only GCC version we
+# This one seems buggy on GCC 4.1.2, which is the only GCC version we
# have that can bootstrap the SPARC build. We end up with lots of supurious
# warnings of the form "cast increases required alignment of target type".
# Some legitimate warnings can be fixed by adding an intermediate cast to
@@ -383,7 +383,7 @@ rts_CC_OPTS += -DUSE_LIBFFI_FOR_ADJUSTORS
endif
# We *want* type-checking of hand-written cmm.
-rts_HC_OPTS += -dcmm-lint
+rts_HC_OPTS += -dcmm-lint
# -fno-strict-aliasing is required for the runtime, because we often
# use a variety of types to represent closure pointers (StgPtr,
@@ -658,4 +658,3 @@ install_libffi_headers :
$(eval $(call clean-target,rts,dist,rts/dist))
BINDIST_EXTRAS += rts/package.conf.in
-