Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Alex D
GHC
Commits
53889193
Commit
53889193
authored
Jan 24, 2013
by
dterei
Browse files
do not use -rpath-link linker option on Solaris.
Patch from Karel Gardas <karel.gardas@centrum.cz>.
parent
b4797136
Changes
1
Hide whitespace changes
Inline
Side-by-side
compiler/main/DriverPipeline.hs
View file @
53889193
...
...
@@ -1752,7 +1752,16 @@ linkBinary dflags o_files dep_packages = do
rpath
=
if
gopt
Opt_RPath
dflags
then
[
"-Wl,-rpath"
,
"-Wl,"
++
libpath
]
else
[]
in
[
"-L"
++
l
,
"-Wl,-rpath-link"
,
"-Wl,"
++
l
]
++
rpath
-- Solaris 11's linker does not support -rpath-link option. It silently
-- ignores it and then complains about next option which is -l<some
-- dir> as being a directory and not expected object file, E.g
-- ld: elf error: file
-- /tmp/ghc-src/libraries/base/dist-install/build:
-- elf_begin: I/O error: region read: Is a directory
rpathlink
=
if
(
platformOS
platform
)
==
OSSolaris2
then
[]
else
[
"-Wl,-rpath-link"
,
"-Wl,"
++
l
]
in
[
"-L"
++
l
]
++
rpathlink
++
rpath
|
otherwise
=
[
"-L"
++
l
]
let
lib_paths
=
libraryPaths
dflags
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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