Porting UNIX Programs to Mac OS X
17 January 2004, 11:53 AM Filed in: …on
Software
This is a short list of problems that I frequently encountered when porting applications to Mac OS X. As any veteran Linux hacker will predict, most of them involve libtool :-)
libtool problems
- Can’t dlopen/dlsym a file properly? Make sure
that you have
-moduleparameter in the plugin’splugin_LDFLAGSentry in itsMakefile.am. - libtool doesn’t write the proper information to
its
.lafiles if you compile a library as--enable-static --disable-shared. You’ll have to edit the .la file and change thelibrary_namesparameter there to belibname.a.
C++ problems
- g++’s support for templates is pretty good now,
but if you’re having problems, have a look at
GCC’s
documentation on templates. In particular, note
the
-frepoflag: using that solved a few template problems for me.
|