specify multiarch path for libsss-sudo location
[debian/sudo] / debian / rules
index 0a73e30473a77f7d90f995ddf9484532f90db0f7..a700c553265fdc5f0ae65c57e9061409b5fc2c94 100755 (executable)
@@ -7,6 +7,7 @@ CFLAGS += -Wall -Wno-comment
 LDFLAGS = `dpkg-buildflags --get LDFLAGS`
 CPPFLAGS = `dpkg-buildflags --get CPPFLAGS`
 
+DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
 DEB_HOST_ARCH_OS ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_OS)
 ifeq ($(DEB_HOST_ARCH_OS),linux)
   configure_args += --with-selinux
@@ -44,7 +45,7 @@ configure-stamp: reconf-stamp
                --with-timedir=/var/lib/sudo \
                --mandir=/usr/share/man \
                --libexecdir=/usr/lib/sudo \
-               --with-sssd \
+               --with-sssd-lib=/usr/lib/$(DEB_HOST_MULTIARCH) \
                $(configure_args)
 
        # LDAP version