mirror of
https://review.coreboot.org/flashrom.git
synced 2025-04-28 15:33:42 +02:00
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>
This commit is contained in:
parent
0e5ae9577e
commit
a8301660e2
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user