diff --git a/base/kmod/kmod.conf b/base/kmod/kmod.conf index 59cbcc3fa..d746563fe 100644 --- a/base/kmod/kmod.conf +++ b/base/kmod/kmod.conf @@ -2,7 +2,7 @@ # This copyright note is auto-generated by ./scripts/Create-CopyPatch. # # Filename: package/.../kmod/kmod.conf -# Copyright (C) 2012 The OpenSDE Project +# Copyright (C) 2012 - 2013 The OpenSDE Project # # More information can be found in the files COPYING and README. # @@ -18,6 +18,11 @@ set_confopt # always build a static library var_append extraconfopt ' ' "--enable-static" +# explicitely use --with-sysroot when not building native +if ! atstage native; then + var_append extraconfopt ' ' "--with-sysroot=$root" +fi + # enable handling of compressed modules if possible for x in zlib xz; do if pkginstalled -f $x; then