diff options
author | Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at> | 2016-01-07 18:13:07 +0000 |
---|---|---|
committer | Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at> | 2016-01-07 18:13:07 +0000 |
commit | bfb067b076c048935314635ffb16c0913a171744 (patch) | |
tree | 91d84b42ac50cc531ab9eb7f4f06ddfcc81509a1 /Makefile | |
parent | 3f73ffec384ef77a5039deb96858623e0fe6f827 (diff) | |
download | ast2050-flashrom-bfb067b076c048935314635ffb16c0913a171744.zip ast2050-flashrom-bfb067b076c048935314635ffb16c0913a171744.tar.gz |
Add support for linking statically with CONFIG_STATIC=yes
This is loosly based on the following changes of chromiumos:
- flashrom: Add default pkg-config definition.
Change-Id: I28744af0fd2d2d0bcc4569a5fbef370321691267
- Fix FT2232 feature on static builds.
Change-Id: I70d4a7bda573b64cb18429a21792455b018c4cba
Corresponding to flashrom svn r1912.
Signed-off-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -72,6 +72,11 @@ LDFLAGS += -L$(LIBS_BASE)/lib -Wl,-rpath -Wl,$(LIBS_BASE)/lib PKG_CONFIG_LIBDIR ?= $(LIBS_BASE)/lib/pkgconfig endif +ifeq ($(CONFIG_STATIC),yes) +PKG_CONFIG += --static +LDFLAGS += -static +endif + dummy_for_make_3_80:=$(shell printf "Build started on %s\n\n" "$$(date)" >$(BUILD_DETAILS_FILE)) debug_shell = $(shell export LC_ALL=C ; { echo 'exec: export LC_ALL=C ; { $(1) ; }' >&2; { $(1) ; } | tee -a $(BUILD_DETAILS_FILE) ; echo >&2 ; } 2>>$(BUILD_DETAILS_FILE)) ############################################################################### |