Add -fPIC to Linux builds so the static lwext library can be linked with the dynamic...
authorCarl Hetherington <cth@carlh.net>
Tue, 1 Dec 2020 22:04:14 +0000 (23:04 +0100)
committerCarl Hetherington <cth@carlh.net>
Tue, 1 Dec 2020 22:04:14 +0000 (23:04 +0100)
cscript

diff --git a/cscript b/cscript
index e118e158719dd507abb586262f272b17f200be7b..58c0231c3f4659eff4f63734f55957552b3d08dc 100644 (file)
--- a/cscript
+++ b/cscript
@@ -23,6 +23,7 @@ def build(target, options):
         blockdev = 'linux'
         ext = 'a'
         device = 'dev'
+        target.command('CFLAGS=-fPIC cmake .')
     elif target.platform == 'osx':
         if target.bits == 64:
             type = 'osx'