Menu

#1 Linking dependent libraries on Mac OS X

open
nobody
None
3
2008-05-30
2008-05-30
Chuck Fry
No

When shared libraries are built on Mac OS X, other libraries they reference in the PLEXIL build structure are referred to as 'lib/libfoo_g.dylib' rather than simply 'libfoo_g.dylib'. This causes attempts to link to the referring libraries to fail because 'lib/libfoo_g.dylib' can't be found.

There is an easy workaround for this problem: simply list the dependent libraries in the ModuleLibraries clause for the module, before any libraries that reference them.

However, this will confuse and annoy customers, so IMHO we should fix the Jam rules to refer to the dependent library by its correct name.

Discussion