acl-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Acl-devel] [PATCH] acl: add libmisc's dependency on include


From: Qi Hou
Subject: [Acl-devel] [PATCH] acl: add libmisc's dependency on include
Date: Mon, 22 May 2017 18:20:17 +0800

'libmisc' and 'include' will be MAKEed parallelly. But libmisc needs
for MAKEed 'include' to prepare the appropriate header files,
sys/acl.h and acl/libacl.h.

While MAKEing 'include', two soft links, sys and acl, will be created
and linked to its current directory '.'. Then every header file under
it could be included by both of "sys/*.h" and "*.h".

But if those two links are created later than MAKEed 'libmisc', two of
the header files, sys/acl.h and acl/libacl.h, will not be found when
MAKEing 'libmisc'.

Kind of errors, like below, will be reported:

| In file included from acl_from_text.c:25:0:
| libacl.h:19:21: fatal error: sys/acl.h: No such file or directory
|  #include <sys/acl.h>
|                      ^
| compilation terminated.
| compilation terminated.
| acl_valid.c:24:24: fatal error: acl/libacl.h: No such file or directory
|  #include <acl/libacl.h>
|                         ^

To avoid this kind of errors, add libmisc's dependency on include.

Signed-off-by: Qi Hou <address@hidden>
Reviewed-by: Zhang Xiao <address@hidden>
---
 Makefile | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Makefile b/Makefile
index dce32d3..1b5d20c 100644
--- a/Makefile
+++ b/Makefile
@@ -48,6 +48,7 @@ else
 endif
 
 # tool/lib dependencies
+libmisc: include
 libacl: libmisc
 getfacl setfacl chacl: libacl
 
-- 
2.7.4




reply via email to

[Prev in Thread] Current Thread [Next in Thread]