Andreas Tille pushed to branch master at Debian Med / libxg
Commits: 200defcf by Andreas Tille at 2026-10-30T10:08:28+01:00 Build and install a static library - - - - - b69ed9db by Andreas Tille at 2026-10-30T10:10:54+01:00 Upload to unstable - - - - - 4 changed files: - debian/changelog - debian/patches/series - + debian/patches/use-static-lib.patch - debian/patches/use-system-deps.patch Changes: ===================================== debian/changelog ===================================== @@ -1,5 +1,5 @@ -libxg (0.1.0+git20251103.8dd476d-1) UNRELEASED; urgency=medium +libxg (0.1.0+git20251103.8dd476d-1) unstable; urgency=medium * Initial release (Closes: #1152520). - -- Andreas Tille <[email protected]> Tue, 27 Oct 2026 17:30:00 +0100 + -- Andreas Tille <[email protected]> Fri, 30 Oct 2026 10:08:54 +0100 ===================================== debian/patches/series ===================================== @@ -1 +1,2 @@ use-system-deps.patch +use-static-lib.patch ===================================== debian/patches/use-static-lib.patch ===================================== @@ -0,0 +1,43 @@ +Description: Also build and install a static library + d-shlibmove expects a static library next to the shared one, otherwise it + aborts with "static library is missing". Build both from the same object + files so nothing is compiled twice. +Author: Andreas Tille <[email protected]> +Last-Update: 2026-10-30 +Assisted-By: aim2balance.ai/a2b-code + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index be43e6b..2742a97 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -58,22 +58,26 @@ set_target_properties(xg_objs PROPERTIES POSITION_INDEPENDENT_CODE TRUE) + target_include_directories(xg_objs PUBLIC ${XG_INCLUDES}) + target_link_libraries(xg_objs PUBLIC ${XG_LIBS}) + +-# shared library with SONAME libxg.so.0 ++# shared and static library, both with output name libxg + add_library(libxg SHARED $<TARGET_OBJECTS:xg_objs>) ++add_library(libxg_static STATIC $<TARGET_OBJECTS:xg_objs>) ++set_target_properties(libxg libxg_static PROPERTIES OUTPUT_NAME "xg") + set_target_properties(libxg PROPERTIES +- OUTPUT_NAME "xg" + VERSION ${PROJECT_VERSION} + SOVERSION 0) + target_include_directories(libxg PUBLIC ${XG_INCLUDES}) ++target_include_directories(libxg_static PUBLIC ${XG_INCLUDES}) + target_link_libraries(libxg PUBLIC ${XG_LIBS}) ++target_link_libraries(libxg_static PUBLIC ${XG_LIBS}) + + # command line tool + add_executable(xg $<TARGET_OBJECTS:xg_objs> src/main.cpp) + target_include_directories(xg PUBLIC ${XG_INCLUDES}) + target_link_libraries(xg ${XG_LIBS}) + +-install(TARGETS libxg +- LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}) ++install(TARGETS libxg libxg_static ++ LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} ++ ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}) + install(TARGETS xg + RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}) + install(FILES src/xg.hpp DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/xg) ===================================== debian/patches/use-system-deps.patch ===================================== @@ -10,6 +10,7 @@ Description: Build against Debian-packaged dependencies over-aligned and heap-allocated, which C++14 does not handle. Author: Andreas Tille <[email protected]> Last-Update: 2026-10-30 +Assisted-By: aim2balance.ai/a2b-code diff --git a/CMakeLists.txt b/CMakeLists.txt index 2ebae9c..be43e6b 100644 View it on GitLab: https://salsa.debian.org/med-team/libxg/-/compare/da669cd19c1e70a124158bded3e15039fce9d0ae...b69ed9db118823b845f065a39f32393ccfba6f38 -- View it on GitLab: https://salsa.debian.org/med-team/libxg/-/compare/da669cd19c1e70a124158bded3e15039fce9d0ae...b69ed9db118823b845f065a39f32393ccfba6f38 You're receiving this email because of your account on salsa.debian.org. Manage all notifications: https://salsa.debian.org/-/profile/notifications | Help: https://salsa.debian.org/help
_______________________________________________ debian-med-commit mailing list [email protected] https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/debian-med-commit
