On Tuesday, February 25, 2003, at 09:57 PM, [EMAIL PROTECTED] wrote:

From: Jean-Charles Bertin <[EMAIL PROTECTED]>
Date: Tue Feb 25, 2003  9:08:39 PM Europe/Zurich
To: [EMAIL PROTECTED]
Subject: [Fink-users] Strange ld warnings


When i try to compile gnome stuff from cvs, i got these warnings:
ld: warning dynamic shared library: /sw/lib/libgnomesupport.dylib not made a weak library in output with MACOSX_DEPLOYMENT_TARGET environment variable set to: 10.1


Ideas ? Missed a DevTools update ?

Jean-Charles Bertin
Mipsys
TechnoParc du Griffon
511, Route de la Seds
13127 Vitrolles

Tel +33 (0)4 42 46 77 50
Fax +33 (0)4 42 46 77 59

It has to do with the ability of the linker (as of December Developers Tools) to generate libraries containing weak symbol. In order to do that your environment variable MACOSX_DEPLOYMENT_TARGET has to be set to 10.2

It is set (by default) to 10.1 hence then the library will not contain the symbol as weak. The difference is on building applications which might run on system whose required libraries might miss new features (symbols). The application may be built so to contain programmatic safeguard for those symbols and not break (or fail to run) on systems with older versions of the libraries concerned.

The warning comes in that the application would like to generate a library containing weak symbols but it can't hence the warning: the symbols will be a regular one rather then weak.

In principle one could also do this on Jaguar systems already:

username% export MACOSX_DEPLOYMENT_TARGET=10.2
username% sudo fixPrecomps -force -precompFlags
username% update_prebinding -root /

to rebuild all libraries containing - this time - weak symbols definitions.

Cheers

PS

Reference: http://developer.apple.com/technotes/tn2002/tn2064.html#Section#1



-------------------------------------------------------
This SF.net email is sponsored by: Scholarships for Techies!
Can't afford IT training? All 2003 ictp students receive scholarships.
Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more.
www.ictp.com/training/sourceforge.asp
_______________________________________________
Fink-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-users

Reply via email to