[PR #390] Add a "lib" target to the Makefile to build a static library: libbrotli.a #1003

Open
opened 2026-01-29 20:52:02 +00:00 by claunia · 0 comments
Owner

Original Pull Request: https://github.com/google/brotli/pull/390

State: closed
Merged: Yes


This small change to the Makefile supports building a libbrotli.a archive of the encoding and decoding objects (not including the CLI tool object or running the test suite). This provides an easy target for linking when brotli code is included in projects that use the encoding and decoding components. This is only an extension, the previous behavior for other targets remain.

P.S. I like the approach of providing a simple, portable Makefile for building when an autoconfig/configure/make can be avoided. This simplicity makes incorporation of brotli into small projects (that do not have their own autoconf/etc.) that much easier. Thanks!

**Original Pull Request:** https://github.com/google/brotli/pull/390 **State:** closed **Merged:** Yes --- This small change to the Makefile supports building a libbrotli.a archive of the encoding and decoding objects (not including the CLI tool object or running the test suite). This provides an easy target for linking when brotli code is included in projects that use the encoding and decoding components. This is only an extension, the previous behavior for other targets remain. P.S. I like the approach of providing a simple, portable Makefile for building when an autoconfig/configure/make can be avoided. This simplicity makes incorporation of brotli into small projects (that do not have their own autoconf/etc.) that much easier. Thanks!
claunia added the pull-request label 2026-01-29 20:52:02 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/brotli#1003