summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorThomas Heijligen <thomas.heijligen@secunet.com>2022-01-31 23:27:52 +0100
committerNico Huber <nico.h@gmx.de>2022-02-15 00:02:45 +0000
commitdbefb9730b6b68643dc8e44aeae3ac77a628f93e (patch)
tree4700c403250f8a534e587060c014ccab72984835 /Makefile
parent274e146621a22f3de4790e685226e1a87bdca51b (diff)
downloadflashrom-dbefb9730b6b68643dc8e44aeae3ac77a628f93e.tar.gz
flashrom-dbefb9730b6b68643dc8e44aeae3ac77a628f93e.tar.bz2
flashrom-dbefb9730b6b68643dc8e44aeae3ac77a628f93e.zip
Makefile: use pkg-config --libs --static for LDFLAGS
The --static flag of pkg-config returns also the LDFLAGS which are required to link the library static. Use this flag to successfully link against static libraries when the shared variant is not available. This is the case in OpenBSD with libpci. Change-Id: I6029a096c1ceca625789d18c88119d912d79bc0e Signed-off-by: Thomas Heijligen <thomas.heijligen@secunet.com> Reviewed-on: https://review.coreboot.org/c/flashrom/+/61524 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Nico Huber <nico.h@gmx.de> Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile1
1 files changed, 0 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index f9280198b..66a699581 100644
--- a/Makefile
+++ b/Makefile
@@ -72,7 +72,6 @@ override LDFLAGS += -L$(LIBS_BASE)/lib -Wl,-rpath -Wl,$(LIBS_BASE)/lib
endif
ifeq ($(CONFIG_STATIC),yes)
-override PKG_CONFIG += --static
override LDFLAGS += -static
endif