Re: [Mysql-cocoa-users] generating libmysqlclient.dylib
Brought to you by:
sergecohen
|
From: Serge C. <co...@em...> - 2002-08-07 09:51:37
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi Nat; Indeed the thing you have to do more likely (I don't have 10.2 so I'm not sure of what's up with this version of the system) is to apply the patch, and then go inside ltconfig and edit the line darwin5.* ... to have darwin6.* accepted as well. Now for what is the use of the patch: On Darwin dynamic libraries have their path hardcoded in the library at linking time (when the archive is made...). This was not handled properly by previous version of the ltconfig. On top of that it tries to prebind the library (execution time optimisation, more precisely launching opt. -If I properly understood-). The adress is either given in a file (setted by LD_SEG_ADDR_TABLE env var, see man ld, - -seg_addr_table), or on the command line with -seg1addr. Anyway having enabled the prebinding permit to redo_prebinding later, even if you don't want to give the adress right away. Everything about prebinding is in ld and redo_prebinding man pages. Hope that helps. Serge. > I haven't figured out how to create libmysqlclient.dylib when building > MySQL from source. MySQL is built and runs fine. Any suggestions? I > would much rather figure out how to generate this myself than use the > precompiled version, because both my OS and my MySQL installation are a > little unusual. I was under the impression that all I had to do was > configure MySQL with --enabled-shared, but apparently I was mistaken. I > see libmysqlclient.a in /usr/local/lib/mysql, but no dylib. > > As a subset of that question, I would appreciate understanding what the > ltconfig patch mentioned in the RTF build instructions actually does. It > appears to me that it will not have an effect on 10.2 (which has Darwin > 6.0, while the patch only targets 5.*), but since I don't know what it's > supposed to accomplish, I can't tell if that's a problem. > > Thanks very much. > > -nat > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Mysql-cocoa-users mailing list > Mys...@li... > https://lists.sourceforge.net/lists/listinfo/mysql-cocoa-users > > - ---------------------------------------------------- Serge Cohen GPG Key ID: 1024D/69B1D346 - ---------------------------------------------------- -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (Darwin) Comment: For info see http://www.gnupg.org iD8DBQE9UO2/Mygj1Wmx00YRAnn5AKCZeD+cW1wOFLRKvQtlXJIaYPXabQCfcNbG sRRJY8p+s644mQC1GNwTv4Q= =OyrC -----END PGP SIGNATURE----- |