This commit is contained in:
24
CLAUDE.md
24
CLAUDE.md
@ -59,22 +59,17 @@ The CMakeLists.txt enforces static linking through:
|
||||
- `CMAKE_EXE_LINKER_FLAGS` with `-static` flag
|
||||
- `CMAKE_FIND_LIBRARY_SUFFIXES` set to `.a`
|
||||
- `BUILD_SHARED_LIBS` forced to OFF
|
||||
- Custom library paths from the base image
|
||||
- All libraries installed in standard `/usr/local` paths
|
||||
|
||||
Important: Projects must set CMAKE_PREFIX_PATH and explicitly link PostgreSQL libraries:
|
||||
Important: Projects should set CMAKE_PREFIX_PATH and may need to explicitly link PostgreSQL libraries:
|
||||
```cmake
|
||||
# Set paths for libraries before finding Drogon
|
||||
set(CMAKE_PREFIX_PATH ${CMAKE_PREFIX_PATH}
|
||||
/usr/local/jsoncpp
|
||||
/usr/local/openssl-musl
|
||||
/usr/local/pgsql
|
||||
# ... other library paths
|
||||
)
|
||||
set(CMAKE_PREFIX_PATH ${CMAKE_PREFIX_PATH} /usr/local)
|
||||
|
||||
# Additional PostgreSQL libraries needed for static linking
|
||||
set(POSTGRESQL_EXTRA_LIBS
|
||||
/usr/local/pgsql/lib/libpgcommon.a
|
||||
/usr/local/pgsql/lib/libpgport.a
|
||||
/usr/local/lib/libpgcommon.a
|
||||
/usr/local/lib/libpgport.a
|
||||
)
|
||||
```
|
||||
|
||||
@ -109,12 +104,11 @@ The system ensures complete static linking by:
|
||||
### Database Support
|
||||
|
||||
Applications can use:
|
||||
- PostgreSQL via libpq at `/usr/local/pgsql/`
|
||||
- MySQL via client library at `/usr/local/mysql/`
|
||||
- MariaDB via connector at `/usr/local/mariadb-connector-c/`
|
||||
- SQLite3 at `/usr/local/sqlite3/`
|
||||
- PostgreSQL via libpq
|
||||
- MySQL via MariaDB connector
|
||||
- SQLite3
|
||||
|
||||
All database libraries are statically linked into the final binary.
|
||||
All database libraries are installed in `/usr/local` and are statically linked into the final binary.
|
||||
|
||||
### HTTP Client Utilities
|
||||
|
||||
|
Reference in New Issue
Block a user