summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Campello <campello@chromium.org>2021-03-17 18:03:28 -0600
committerEdward O'Callaghan <quasisec@chromium.org>2021-03-19 00:49:07 +0000
commita8301660e2bab0fc9fdb7278c59c2c4dfcff99e5 (patch)
tree7c6d4976e3712403b3804ef35a65644eef94584e
parent0e5ae9577e1f353a47dd46f891fe03aa8ab8e6d7 (diff)
downloadflashrom-a8301660e2bab0fc9fdb7278c59c2c4dfcff99e5.tar.gz
flashrom-a8301660e2bab0fc9fdb7278c59c2c4dfcff99e5.tar.bz2
flashrom-a8301660e2bab0fc9fdb7278c59c2c4dfcff99e5.zip
meson: Generalise libflashrom product to link as static or dyn
Allow the user to specify if they would like a static archive or a DSO produced for libflashrom by way of the flag e.g. `-Ddefault_library=static`. Signed-off-by: Daniel Campello <campello@chromium.org> Change-Id: I77e5c298163979a0222270b3ac5d03542e5618f7 Reviewed-on: https://review.coreboot.org/c/flashrom/+/51616 Reviewed-by: Edward O'Callaghan <quasisec@chromium.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
-rw-r--r--meson.build2
1 files changed, 1 insertions, 1 deletions
diff --git a/meson.build b/meson.build
index b7e8c1080..d5895d8ee 100644
--- a/meson.build
+++ b/meson.build
@@ -378,7 +378,7 @@ srcs += 'writeprotect.c'
mapfile = 'libflashrom.map'
vflag = '-Wl,--version-script,@0@/@1@'.format(meson.current_source_dir(), mapfile)
-flashrom = shared_library(
+flashrom = library(
'flashrom',
sources : [
srcs,