2
0
Fork 0

genodeLibcCross: build a libm stub

This commit is contained in:
Ehmry - 2020-05-08 18:02:25 +05:30
parent b8bbdc8d0f
commit 541cd34b7a
1 changed files with 4 additions and 0 deletions

View File

@ -6,12 +6,16 @@ genodeSources.buildDepot {
name = "posix";
propagatedBuildInputs = [ genodeBase ];
portInputs = [ genodeSources.ports.libc ];
preConfigure = ''
echo "LIBS += libm" >> repos/libports/lib/mk/posix.mk
'';
preInstall =
# Take the libc ABI stubs rather than the actual libc.
# The libc needs a lot of work and we can't afford to
# rebuild the toolchain for every fix.
''
find depot -name libc.abi.so -exec install -D {} "''${!outputLib}/libc.so" \;
find depot -name libm.abi.so -exec install -D {} "''${!outputLib}/libm.so" \;
'';
postInstall = ''
local headerDir="''${!outputDev}/include"