[patch] optional -lsepol
Yuichi Nakamura
ynakam at hitachisoft.jp
Wed Jun 6 00:52:11 UTC 2007
On Wed, 6 Jun 2007 00:53:00 +0200
Denis Vlasenko wrote:
> ifeq ($(CONFIG_SELINUX),y)
> -LDLIBS += -lselinux -lsepol
> +LDLIBS += -lselinux
> endif
>
> +ifeq ($(CONFIG_SELINUX_SEPOL),y)
> +LDLIBS += -lsepol
> +endif
>
> This will work, yes. But ideally I want a system which
> links in -lsepol only if otherwise link fails.
>
> See how trylink script does it for libm and libcrypt.
> Ugly hack, but needs no build magic and avoids situations when
> CONFIG_LIBM etc are set needlessly.
I see.
I fixed trylink and included -lsepol check.
Please review attached one.
Regards
Yuichi Nakamura
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sepol.2.patch
Type: application/octet-stream
Size: 1004 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/busybox/attachments/20070606/c059097d/attachment-0002.obj
More information about the busybox
mailing list