summaryrefslogtreecommitdiff
path: root/builddeps-flashrom
diff options
context:
space:
mode:
Diffstat (limited to 'builddeps-flashrom')
-rwxr-xr-xbuilddeps-flashrom2
1 files changed, 2 insertions, 0 deletions
diff --git a/builddeps-flashrom b/builddeps-flashrom
index 250c393..ea93780 100755
--- a/builddeps-flashrom
+++ b/builddeps-flashrom
@@ -45,8 +45,10 @@ do
cp ../resources/flashrom/patch/flashchips.c"$patchname" flashchips.c
rm -f flashrom"$patchname"
if (( $# != 1 )); then
+ # build it dynamically linked
make
else
+ # build it statically linked
make SHARED=0 CC='gcc -static'
fi
mv flashrom flashrom"$patchname"