libsepol: include module.c internal header in module_to_cil.c
In module_to_cil.c, sepol_ppfile_to_module_package() calls functions from module.c without including the internal header. This makes building libsepol with "gcc -flto -fuse-ld=gold" fails when linking libsepol.so: /tmp/ccHYAKVZ.ltrans21.ltrans.o:<artificial>:function sepol_ppfile_to_module_package: error: undefined reference to 'sepol_module_package_free' /tmp/ccHYAKVZ.ltrans21.ltrans.o:<artificial>:function sepol_ppfile_to_module_package: error: undefined reference to 'sepol_module_package_create' /tmp/ccHYAKVZ.ltrans21.ltrans.o:<artificial>:function sepol_ppfile_to_module_package: error: undefined reference to 'sepol_module_package_create' collect2: error: ld returned 1 exit status Fixes: https://github.com/SELinuxProject/selinux/issues/165 Signed-off-by: Nicolas Iooss <nicolas.iooss@m4x.org>
This commit is contained in:
parent
071247e8f4
commit
3abeb7c654
1 changed files with 1 additions and 0 deletions
|
@ -54,6 +54,7 @@
|
||||||
|
|
||||||
#include "kernel_to_common.h"
|
#include "kernel_to_common.h"
|
||||||
#include "private.h"
|
#include "private.h"
|
||||||
|
#include "module_internal.h"
|
||||||
|
|
||||||
#ifdef __GNUC__
|
#ifdef __GNUC__
|
||||||
# define UNUSED(x) UNUSED_ ## x __attribute__((__unused__))
|
# define UNUSED(x) UNUSED_ ## x __attribute__((__unused__))
|
||||||
|
|
Loading…
Reference in a new issue