From bef02e9d89dcd0a1f81d2e5f7772e4476e20ff0f Mon Sep 17 00:00:00 2001
From: darmac <xiaojun2@hisilicon.com>
Date: Mon, 17 Aug 2020 06:27:47 +0800
Subject: [PATCH] nfs-utils: fix compile error on ubuntu (#18066)

---
 var/spack/repos/builtin/packages/nfs-utils/package.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/var/spack/repos/builtin/packages/nfs-utils/package.py b/var/spack/repos/builtin/packages/nfs-utils/package.py
index c8d105a882..b28a8596a5 100644
--- a/var/spack/repos/builtin/packages/nfs-utils/package.py
+++ b/var/spack/repos/builtin/packages/nfs-utils/package.py
@@ -26,9 +26,10 @@ class NfsUtils(AutotoolsPackage):
     depends_on('keyutils')
     depends_on('sqlite')
     depends_on('util-linux')
+    depends_on('gettext')
 
     def setup_build_environment(self, env):
-        env.append_flags('LDFLAGS', '-lintl')
+        env.append_flags('LIBS', '-lintl')
 
     def configure_args(self):
         args = ['--disable-gss', '--with-rpcgen=internal']
-- 
GitLab