libselinux/libselinux-rhat.patch

20 lines
519 B
Diff
Raw Normal View History

diff --exclude-from=exclude -N -u -r nsalibselinux/src/init.c libselinux-1.25.6/src/init.c
--- nsalibselinux/src/init.c 2005-08-25 16:18:01.000000000 -0400
+++ libselinux-1.25.6/src/init.c 2005-09-01 11:23:11.000000000 -0400
@@ -86,6 +86,7 @@
{
int (*lib_trans_init)(void) = NULL;
+#ifdef __PIC__
translation_lib_handle = dlopen("libsetrans.so.0", RTLD_NOW);
if (!translation_lib_handle)
return;
@@ -108,6 +109,7 @@
return;
context_translations = 1;
+#endif
}
static void fini_translations(void)