Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Alex D
GHC
Commits
8a1b7eb6
Commit
8a1b7eb6
authored
Apr 30, 2013
by
ian@well-typed.com
Browse files
Fix build on OS X
sed on OS X doesn't handle \+
parent
50e78daf
Changes
1
Hide whitespace changes
Inline
Side-by-side
rts/ghc.mk
View file @
8a1b7eb6
...
...
@@ -69,11 +69,13 @@ rts_H_FILES += $(DTRACEPROBES_H)
endif
# collect the -l and -L flags that we need to link the rts dyn lib.
# Note that, as sed on OS X doesn't handle \+, we use [^ ][^ ]* rather
# than [^ ]\+
rts/libs.depend
:
$$(ghc-pkg_INPLACE)
"
$
(ghc-pkg_INPLACE)"
--simple-output
field rts extra-libraries
\
|
sed
-e
's/\([^ ]
\+
\)/-l\1/g'
>
$@
|
sed
-e
's/\([^ ]
[^ ]*
\)/-l\1/g'
>
$@
"
$
(ghc-pkg_INPLACE)"
--simple-output
field rts library-dirs
\
|
sed
-e
's/\([^ ]
\+
\)/-L\1/g'
>>
$@
|
sed
-e
's/\([^ ]
[^ ]*
\)/-L\1/g'
>>
$@
# ----------------------------------------------------------------------------
...
...
Write
Preview
Supports
Markdown
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