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

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

📋 Pull Request Information

Original PR: https://github.com/google/brotli/pull/390
Author: @chad-earthscope
Created: 7/6/2016
Status: Merged
Merged: 7/26/2016
Merged by: @eustas

Base: masterHead: master


📝 Commits (1)

  • 8529bfa Add a "lib" target to the Makefile to build a static library named libbrotli.a

📊 Changes

1 file changed (+9 additions, -3 deletions)

View changed files

📝 Makefile (+9 -3)

📄 Description

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!


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/google/brotli/pull/390 **Author:** [@chad-earthscope](https://github.com/chad-earthscope) **Created:** 7/6/2016 **Status:** ✅ Merged **Merged:** 7/26/2016 **Merged by:** [@eustas](https://github.com/eustas) **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (1) - [`8529bfa`](https://github.com/google/brotli/commit/8529bfa1f79008142629f170b700be7ab1e6c65b) Add a "lib" target to the Makefile to build a static library named libbrotli.a ### 📊 Changes **1 file changed** (+9 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `Makefile` (+9 -3) </details> ### 📄 Description 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! --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
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#999