diff --git a/build/jam/BootRules b/build/jam/BootRules index c3581e204b..88e1c995e1 100644 --- a/build/jam/BootRules +++ b/build/jam/BootRules @@ -53,7 +53,7 @@ rule BootLd # Remove any preset LINKLIBS, but link against libgcc.a. Linking against # libsupc++ is opt-out. local libs ; - if ! [ on $(1) return HAIKU_NO_LIBSUPC++ ] { + if ! [ on $(1) return $(HAIKU_NO_LIBSUPC++) ] { libs += $(TARGET_BOOT_LIBSUPC++) ; } LINKLIBS on $(1) = $(libs) $(TARGET_BOOT_LIBGCC) ; diff --git a/build/jam/KernelRules b/build/jam/KernelRules index 379914341c..8fa5ab39f4 100644 --- a/build/jam/KernelRules +++ b/build/jam/KernelRules @@ -47,7 +47,7 @@ rule KernelLd # Remove any preset LINKLIBS, but link against libgcc.a. Linking against # libsupc++ is opt-out. local libs ; - if ! [ on $(1) return HAIKU_NO_LIBSUPC++ ] { + if ! [ on $(1) return $(HAIKU_NO_LIBSUPC++) ] { libs += $(TARGET_KERNEL_LIBSUPC++) ; } LINKLIBS on $(1) = $(libs) $(TARGET_KERNEL_LIBGCC) ;