#1395: let ./configure check for a GNUreadline framework
-----------------------------+----------------------------------------------
 Reporter:  [EMAIL PROTECTED]    |          Owner:             
     Type:  feature request  |         Status:  reopened   
 Priority:  normal           |      Milestone:  6.8 branch 
Component:  Build System     |        Version:  6.8        
 Severity:  normal           |     Resolution:             
 Keywords:                   |     Difficulty:  Easy (1 hr)
 Testcase:                   |   Architecture:  Multiple   
       Os:  MacOS X          |  
-----------------------------+----------------------------------------------
Comment (by judah):

 Replying to [comment:5 guest]:
 > Interesting question. I've created the mac binary dists with a local
 GNUreadline framework. I hope my home directory wasn't left as framework
 search path in the ghc-6.6.1 binary. "man ld" on Mac did not give me a
 clue about this. (There's nothing like a RUN_LIBRARY_PATH.)
 >


 I did some research, and figured out what's going on.  Loading at runtime
 is handled by {{{dyld}}}, not {{{ld}}}; in fact, the {{{-F}}} flag is
 irrelevant to how {{{dyld}}} works.  Instead, it uses the environmental
 variables {{{DYLD_FRAMEWORK_PATH}}} and
 {{{DYLD_FALLBACK_FRAMEWORK_PATH}}}.  The latter defaults to searching
 {{{$HOME/Library/Frameworks}}} as well as {{{/Library/Frameworks}}} et.
 al.

 As a result, binaries can always load frameworks stored in either the home
 or root locations, regardless of the flags passed to the compiler at build
 time.

 See my page [wiki:OSXFrameworks] for more info.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/1395#comment:12>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to