Skip to content

build: Add declarative shared library support - #3730

Merged
acassis merged 1 commit into
apache:masterfrom
aviralgarg05:gsoc/library-mk-shared-support
Aug 18, 2026
Merged

build: Add declarative shared library support#3730
acassis merged 1 commit into
apache:masterfrom
aviralgarg05:gsoc/library-mk-shared-support

Conversation

@aviralgarg05

@aviralgarg05 aviralgarg05 commented Aug 16, 2026

Copy link
Copy Markdown
Contributor

Summary

Add Library.mk for shared libraries declared with LOCAL_MODULE and
LOCAL_SRC_FILES. Convert the sotest modules and split the exported
messages into a second source file to cover multi-source builds.

The helper supports C and C++ sources and per-module build flags. Compiler
runtime lookup is shared with Application.mk through one Make helper.

Documentation: apache/nuttx#19888

Testing

  • tools/checkpatch.sh -g upstream/master..HEAD
  • clean esp32s3-devkit:sotest Make build with GCC 14.2.0
  • ran sotest on an ESP32-S3; both modules loaded, resolved their exported
    functions and data, passed dependency checks, and unloaded
  • built a mixed C/C++ two-source module and verified compiler-runtime linking

Comment thread README.md Outdated
Comment thread Library.mk Outdated
Add Library.mk for declarative shared-library builds. Reuse the compiler-runtime lookup shared with Application.mk and cover multi-source libraries with sotest.

Signed-off-by: aviralgarg05 <gargaviral99@gmail.com>
@acassis
acassis merged commit 5e057f3 into apache:master Aug 18, 2026
27 of 53 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants