Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
Cabal
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Contributor analytics
CI/CD analytics
Repository analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Haskell
Cabal
Commits
e26b262b
Commit
e26b262b
authored
17 years ago
by
Duncan Coutts
Browse files
Options
Downloads
Patches
Plain Diff
Add warning about the use of ghc-options: -optl-Wl,-s
parent
1b91f5ec
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Distribution/PackageDescription/Check.hs
+10
-2
10 additions, 2 deletions
Distribution/PackageDescription/Check.hs
with
10 additions
and
2 deletions
Distribution/PackageDescription/Check.hs
+
10
−
2
View file @
e26b262b
...
...
@@ -107,8 +107,8 @@ check True pc = Just pc
-- * Standard checks
-- ------------------------------------------------------------
-- TODO:
Once we implement striping (ticket #88) we should also reject
--
ghc-options: -optl-Wl,-s.
-- TODO:
--
-- * check for unknown 'OS's and 'Arch's. This requires checking the
-- 'GenericPackageDescription' which we do not currently get passed.
...
...
@@ -347,6 +347,14 @@ checkGhcOptions pkg =
PackageDistInexcusable
$
"'ghc-options: -split-objs' is not needed. Use the --enable-split-objs configure flag."
,
checkFlags
[
"-optl-Wl,-s"
]
$
PackageDistSuspicious
$
"'ghc-options: -optl-Wl,-s' is not needed and is not portable to all"
++
" operating systems. Cabal 1.4 and later automatically strip"
++
" executables. Cabal also has a flag --disable-executable-stripping"
++
" which is necessary when building packages for some Linux"
++
" distributions and using '-optl-Wl,-s' prevents that from working."
,
checkFlags
[
"-fglasgow-exts"
]
$
PackageDistSuspicious
$
"Instead of 'ghc-options: -fglasgow-exts' it is preferable to use the 'extensions' field."
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment