Adjust for Nix environment

Use a LIBUNWIND and LIBUNWIND_BAREMETAL, adjust shell.nix to use
"base" from the  new split repository builds.
This commit is contained in:
Ehmry - 2019-09-20 23:24:05 +02:00
parent 5a8686eaf9
commit 7d384bc3e6
2 changed files with 4 additions and 4 deletions

View File

@ -5,13 +5,13 @@ DEFINES = -ffunction-sections -fno-strict-aliasing -g -fPIC
export LIBCXX
export LIBCXXABI
export LIBUNWIND
export LIBUNWIND_BAREMETAL
INCLUDES += -I$LIBCXX/include/c++/v1
INCLUDES += -I$LIBCXXABI/include
LLVM_LIBS += $LIBCXXABI/lib/libc++abi.a
LLVM_LIBS += $LIBUNWIND/lib/libunwind.a
LLVM_LIBS += $LIBUNWIND_BAREMETAL/lib/libunwind.a
: foreach *.cc |> !cxx |> {supc++}
@ -70,7 +70,7 @@ EH_SYMBOLS += \
REDEF_SYMBOLS = `echo $(EH_SYMBOLS) | awk -v RS=' ' '{ print "--redefine-sym "$1"=_cxx_"$1 }'`
export OBJCOPY
: supc++.tmp |> $OBJCOPY $(LOCAL_SYMBOLS) $(REDEF_SYMBOLS) %f %o |> supc++.o {obj}
: supc++.tmp |> $OBJCOPY $(LOCAL_SYMBOLS) $(REDEF_SYMBOLS) -weaken %f %o |> supc++.o {obj}
: foreach *.c |> !cc |> {obj}

View File

@ -1 +1 @@
{ pkgs ? import <genodepkgs> { } }: pkgs.upstream
{ pkgs ? import <genodepkgs> { } }: pkgs.upstream.base