#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)
Os: MacOS X | Testcase:
Architecture: Multiple |
--------------------------------+-------------------------------------------
Comment (by guest):
Replying to [comment:4 igloo]:
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.)
{{{
-search_paths_first
By default when the -dynamic flag is in effect, the -lx
and
-weak-lx options first search for a file of the
form
`libx.dylib' in each directory in the library search path,
then
a file of the form `libx.a' is searched for in the
library
search paths. This option changes it so that in each
path
`libx.dylib' is searched for then `libx.a' before the next
path
in the library search path is searched.
-framework name[,suffix]
Specifies a framework to link against. Frameworks are
dynamic
shared libraries, but they are stored in different
locations,
and therefore must be searched for differently. When this
option
is specified, ld searches for framework
`name.framework/name'
first in any directories specified with the -F option,
then in
the standard framework directories /Library/Frameworks,
/Net-
work/Library/Frameworks, and /System/Library/Frameworks.
The
placement of the -framework option is significant, as it
deter-
mines when and how the framework is searched. If the
optional
suffix is specified the framework is first searched for the
name
with the suffix and then without.
-weak_framework name[,suffix]
This is the same as the -framework name[,suffix] but forces
the
framework and all references to it to be marked as weak
imports.
Care must be taken when using this as the use of the non-
weak
symbol references in an object file may cause the program
to
crash when the symbol or framework is not present at
execution
time.
-Fdir Add dir to the list of directories in which to search for
frame-
works. Directories specified with -F are searched before
the
standard framework directories.
}}}
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/1395#comment:5>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs