|
[ ghc-Bugs-670756 ] package cc and ld opts inconsistent: msg#00009lang.haskell.glasgow.bugs
Bugs item #670756, was opened at 2003-01-19 18:59 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=108032&aid=670756&group_id=8032 Category: Driver Group: 5.04.2 Status: Open Resolution: None Priority: 5 Submitted By: Axel Simon (as49) Assigned to: Nobody/Anonymous (nobody) Summary: package cc and ld opts inconsistent Initial Comment: I try to create a package which passes "--subsystem windows" to the linker. As far as I understand it should be ok to have extra_ld_opts = ["--subsystem windows"] or, as ghc itself does it extra_ld_opts = ["--subsystem", "windows"] in the package description. However these flags are not given to the linker. I tried extra_cc_opts = ["-Wl,--subsystem", "-Wl,windows"] but these flags are not passed to the C compiler either. I finally succeeded with extra_ld_opts = ["-Wl,--subsystem", "-Wl,windows"] which I suspect fails when compiling with the native code generator. I am using the MSI of ghc 5.04.2. Axel. ---------------------------------------------------------------------- >Comment By: Simon Marlow (simonmar) Date: 2003-02-04 11:26 Message: Logged In: YES user_id=48280 The "linker" is in fact gcc, so when you add options to extra_ld_opts they are passed on the gcc command line. If you want to actually pass options to ld, then you need to use the -Wl, prefix as you mentioned. I don't understand your comments about extra_cc_opts - as far as I can tell these are always passed to C compilations. Could you give a specific example? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=108032&aid=670756&group_id=8032
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | [ ghc-Bugs-679963 ] hp2hs -c appears broken in ghc-5.04.2, SourceForge.net |
|---|---|
| Next by Date: | [ ghc-Bugs-670756 ] package cc and ld opts inconsistent, SourceForge.net |
| Previous by Thread: | [ ghc-Bugs-679966 ] ghci does not appear to restore its signal handlers, SourceForge.net |
| Next by Thread: | [ ghc-Bugs-670756 ] package cc and ld opts inconsistent, SourceForge.net |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |