bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: readline with shared libraries on Mac OS X/Darwin


From: Chet Ramey
Subject: Re: readline with shared libraries on Mac OS X/Darwin
Date: Wed, 31 Jul 2002 08:53:50 -0400

> Hello.  I'm one of the developers in the Fink project, which packages Unix
> software for Mac OS X/Darwin.
> 
> We've noticed a problem with the darwin|macosx "stanza" in the shobj-conf
> file in readline.  In Darwin, the shared library command requires a bunch
> of flags which are unknown on ELF and other systems.  The flag giving
> trouble is Darwin's -install_name flag.
> 
> Whoever wrote this stanza (and it may well have been Fink's founder, chrisp,
> who is no longer with the project), wrote
>   -install_name $(libdir)/$@
> and when this is actually used (in the current version, say), $@ expands to
> libreadline.4.3.dylib or libhistory.4.3.dylib.  However, what we need it to
> expand to is libreadline.4.dylib or libhistory.4.dylib.  In other words, it
> should show the filename with only the major version number present, not
> the minor version number.

You should be able to do what you want by changing the assignment to
SHLIB_LIBVERSION in the darwin/macosx stanza.  If you make it look like

SHLIB_LIBVERSION='$(SHLIB_MAJOR).$(SHLIB_LIBSUFF)'

the makefile will create libreadline.4.dylib and libhistory.4.dylib as
targets and `$@' will expand to what you want.

Chet

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
( ``Discere est Dolere'' -- chet )

Chet Ramey, ITS, CWRU    address@hidden    http://cnswww.cns.cwru.edu/~chet/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]