Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Alex D
GHC
Commits
e48cab2a
Commit
e48cab2a
authored
Sep 24, 2020
by
Krzysztof Gogolewski
Committed by
Marge Bot
Oct 09, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a flag to indicate that gcc supports -no-pie
Fixes #17919.
parent
d360f343
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
0 deletions
+16
-0
compiler/GHC/Driver/Session.hs
compiler/GHC/Driver/Session.hs
+2
-0
docs/users_guide/phases.rst
docs/users_guide/phases.rst
+14
-0
No files found.
compiler/GHC/Driver/Session.hs
View file @
e48cab2a
...
...
@@ -2232,6 +2232,8 @@ dynamic_flags_deps = [
-- (see #15319)
toolSettings_ccSupportsNoPie
=
False
}
,
make_ord_flag
defFlag
"pgmc-supports-no-pie"
$
noArg
$
alterToolSettings
$
\
s
->
s
{
toolSettings_ccSupportsNoPie
=
True
}
,
make_ord_flag
defFlag
"pgms"
(
HasArg
(
\
_
->
addWarn
"Object splitting was removed in GHC 8.8"
))
,
make_ord_flag
defFlag
"pgma"
...
...
docs/users_guide/phases.rst
View file @
e48cab2a
...
...
@@ -180,6 +180,20 @@ the following flags:
Pass ⟨option⟩ to the C compiler.
.. ghc-flag:: -pgmc-supports-no-pie
:shortdesc: Indicate that the C compiler supports ``-no-pie``
:type: dynamic
:category: phase-options
When ``-pgmc`` is used, GHC by default will never pass the ``-no-pie``
command line flag. The rationale is that it is not known whether the
specified compiler will support it. This flag can be used to indicate
that ``-no-pie`` is supported. It has to be passed after ``-pgmc``.
This flag is not neccessary when ``-pgmc`` is not used, since GHC
remembers whether the default C compiler supports ``-no-pie`` in
an internal settings file.
.. ghc-flag:: -optcxx ⟨option⟩
:shortdesc: pass ⟨option⟩ to the C++ compiler
:type: dynamic
...
...
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