Add support for static only build

This patch adds support for a BUILD_SHARED_LIB variable that allows to
enable/disable the build of the shared library, in order to support
static-only builds.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
[Retrieved from:
https://git.buildroot.net/buildroot/tree/package/lm-sensors/0001-static-build.patch]
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
This commit is contained in:
Fabrice Fontaine committed 2020-07-13 11:30:36 +02:00
1 parent 66fd2eefbc
commit e31cb3b2f8
4 files changed
+14 -3

No files matched your search

+3
View File
@@ -85,6 +85,9 @@ ARCH := $(firstword $(subst -, ,$(shell $(CC) -dumpmachine)))
# Build and install static library
BUILD_STATIC_LIB := 1
# Build and install shared library
BUILD_SHARED_LIB := 1
# Set these to add preprocessor or compiler flags, or use
# environment variables
# CFLAGS :=