genodeLibcCross: build a libm stub
This commit is contained in:
parent
b8bbdc8d0f
commit
541cd34b7a
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue