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

Add options to override locations of programs called from stack #2369

Closed
sjakobi opened this issue Jul 12, 2016 · 7 comments
Closed

Add options to override locations of programs called from stack #2369

sjakobi opened this issue Jul 12, 2016 · 7 comments

Comments

@sjakobi
Copy link
Member

sjakobi commented Jul 12, 2016

(This issue is split off from #593.)

It should be possible to specify the locations of the programs that stack calls, like ldd or strip.

The location of gcc can be specified via --with-gcc since #2264.

@mgsloan
Copy link
Contributor

mgsloan commented Jul 19, 2016

Good idea! Should also share code with #652

@nh2
Copy link
Collaborator

nh2 commented Apr 7, 2017

This would allow stack users to link with the lld linker, see https://www.reddit.com/r/haskell/comments/63y43y/liked_linking_3x_faster_with_gold_link_10x_faster/

@kgadek
Copy link

kgadek commented Apr 15, 2017

I published #3118 as a quick solution to overriding ld and strip.

Also, my cabal (1.24.0.2) reports:

The flags --with-PROG and --PROG-option(s) can be used with the following programs:
  alex ar c2hs cpphs gcc ghc ghc-pkg ghcjs ghcjs-pkg greencard haddock happy
  haskell-suite haskell-suite-pkg hmake hpc hsc2hs hscolour jhc ld lhc lhc-pkg
  pkg-config strip tar uhc

Quite a few. The complete solution should cover them all.

I've started playing around more comprehensive code.

kgadek added a commit to kgadek/stack that referenced this issue Apr 16, 2017
This is a more complete solution comparing with d145fcf. Closes commercialhaskell#2369.
kgadek added a commit to kgadek/stack that referenced this issue May 6, 2017
This is a more complete solution comparing with d145fcf. Closes commercialhaskell#2369.
kgadek added a commit to kgadek/stack that referenced this issue May 7, 2017
kgadek added a commit to kgadek/stack that referenced this issue May 7, 2017
@davetapley
Copy link
Contributor

Hi, sorry if this is unrelated:
Could this (and #593) be and underlying reason for the issue mentioned in this comment?

@mgsloan
Copy link
Contributor

mgsloan commented Jan 17, 2018

I've commented on that issue, I don't think it's related

@snoyberg
Copy link
Contributor

Would #1438 (adding a configure-options) fully subsume this? At least for the examples given, I don't believe Stack calls these executables directly.

@snoyberg
Copy link
Contributor

I believe the new configure-options feature on master will address this, closing. If someone has a use case which isn't addressed, please add some clarification.

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

No branches or pull requests

6 participants