On Monday, November 10, 2003, at 06:10 AM, Martin Simmons wrote:


On Fri, 7 Nov 2003 10:14:07 -0600, Joseph Larson <[EMAIL PROTECTED]> said:
Joe> ld: warning dynamic shared library: /usr/X11R6/lib/libXext.dylib not
Joe> made a weak library in output with MACOSX_DEPLOYMENT_TARGET environment
Joe> variable set to: 10.1


I've not seen this, though I didn't run make install.  Is
MACOSX_DEPLOYMENT_TARGET actually set?

Apple has a tech note (


http://developer.apple.com/technotes/tn2002/tn2064.html

) which describes weak linking and mentions that warning.  From the
tech note:

    There is a known bug in the December 2002 Mac OS X Developer
    Tools where if you link against a framework or shared library
    from which you use no symbols (call it library A), but you
    link against and use symbols from another library (call it
    library B) that does use symbols from library A, then the
    linker will attempt to weakly link library A. But if your
    MACOSX_DEPLOYMENT_TARGET isn't set to 10.2 or higher, this
    will fail (as it should) because earlier OS versions don't
    support weak linking, and thus a warning will be generated.
    The warning will be of the form, "ld: warning dynamic shared
    library: /usr/lib/libSystem.dylib not made weak library in
    output with MACOSX_DEPLOYMENT_TARGET environment variable
    set to: 10.1". This bug should be fixed in the next major
    version of the Mac OS X Developer Tools (r. 3094497). In
    the meantime, to get rid of the warnings you can either set
    the MACOSX_DEPLOYMENT_TARGET to 10.2, or make a spurious call
    into the library to use a symbol from it and get the linker
    to strongly link it.


Eric Branlund [EMAIL PROTECTED]

_______________________________________________
Lesstif mailing list
[EMAIL PROTECTED]
https://terror.hungry.com/mailman/listinfo/lesstif

Reply via email to