Figure out and approve library dependency strategy.
|Reported by:||bnordgren||Owned by:||pramsey|
Currently, the "postgis" and "raster" libraries are in parallel, having no dependency relationship between them. Both libraries depend on liblwgeom for common code, but liblwgeom does not contain any postgresql-aware code (e.g., memory context, etc.) There is no place, therefore, for common code which needs to be postgresql aware.
As I see it, there are four candidate solutions:
- Duplicate the common code in
- Figure out how to correctly make one shared library depend on another, when the linking happens before the first shared library is installed. (e.g., shared library is moved after something links against it.)
- Create a new static library which contains common code that is postgresql-aware.
librasterbe static, and create one merged shared library containing both of them.
Helpful (hopefully) web links…