Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GCC misc flag #1865

Closed
cchantep opened this issue May 13, 2014 · 7 comments
Closed

GCC misc flag #1865

cchantep opened this issue May 13, 2014 · 7 comments

Comments

@cchantep
Copy link

I don't find way to make cabal pass misc flag to GCC (-mflag).

e.g. -mwindows is useful when compiling/linking with GTK to ensure built GTK app won't start console/command prompt.

@cchantep
Copy link
Author

Env: Win7, msys2, ghc7.8.2, cabal1.18

@23Skidoo
Copy link
Member

cc-options in the .cabal file. configure --with-gcc-options should also work IIRC.

@cchantep
Copy link
Author

-v3 doesn't show such option passed to gcc

@23Skidoo
Copy link
Member

What have you tried?

@cchantep
Copy link
Author

--gcc-options --cc-options cc-options:

@23Skidoo
Copy link
Member

I guess that's because Cabal uses ghc to do linking and gcc-options is only for compiling C sources. So you need ghc-options: -optl-mwindows.

@cchantep
Copy link
Author

Thanks, it works. Useful to know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants