genodeLibcCross: build a libm stub
This commit is contained in:
parent
b8bbdc8d0f
commit
541cd34b7a
|
@ -6,12 +6,16 @@ genodeSources.buildDepot {
|
||||||
name = "posix";
|
name = "posix";
|
||||||
propagatedBuildInputs = [ genodeBase ];
|
propagatedBuildInputs = [ genodeBase ];
|
||||||
portInputs = [ genodeSources.ports.libc ];
|
portInputs = [ genodeSources.ports.libc ];
|
||||||
|
preConfigure = ''
|
||||||
|
echo "LIBS += libm" >> repos/libports/lib/mk/posix.mk
|
||||||
|
'';
|
||||||
preInstall =
|
preInstall =
|
||||||
# Take the libc ABI stubs rather than the actual libc.
|
# Take the libc ABI stubs rather than the actual libc.
|
||||||
# The libc needs a lot of work and we can't afford to
|
# The libc needs a lot of work and we can't afford to
|
||||||
# rebuild the toolchain for every fix.
|
# rebuild the toolchain for every fix.
|
||||||
''
|
''
|
||||||
find depot -name libc.abi.so -exec install -D {} "''${!outputLib}/libc.so" \;
|
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 = ''
|
postInstall = ''
|
||||||
local headerDir="''${!outputDev}/include"
|
local headerDir="''${!outputDev}/include"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user