File glibc-selinux.diff of Package glibc

Index: Makerules
===================================================================
--- Makerules.orig
+++ Makerules
@@ -349,7 +349,7 @@ endif # $(versioning) = yes
 endif # sysd-sorted-done
 
 # Generate .dT files as we compile.
-compile-mkdep-flags = -MD -MP -MF $@.dt -MT $@
+compile-mkdep-flags = -MD -MP -MF $@.dt -MT $@ -I/usr/include
 compile-command.S = $(compile.S) $(OUTPUT_OPTION) $(compile-mkdep-flags)
 compile-command.s = $(COMPILE.s) $< $(OUTPUT_OPTION) $(compile-mkdep-flags)
 compile-command.c = $(compile.c) $(OUTPUT_OPTION) $(compile-mkdep-flags)
Index: nscd/Makefile
===================================================================
--- nscd/Makefile.orig
+++ nscd/Makefile
@@ -123,6 +123,8 @@ CFLAGS-getsrvbynm_r.c += $(nscd-cflags)
 CFLAGS-getsrvbypt_r.c += $(nscd-cflags)
 CFLAGS-res_hconf.c += $(nscd-cflags)
 
+LDFLAGS = -lselinux
+
 ifeq (yesyes,$(have-fpie)$(build-shared))
 relro-LDFLAGS += -Wl,-z,now
 
openSUSE Build Service is sponsored by