illumos-packaging/uts/debian/patches/uts-include-path.patch

17 lines
833 B
Diff

Description: Make sure to find proper headers
We've patched some headers, e. g. rename gssapi/gssapi.h
to sys/gssapi.h, so make sure compiler can find it.
Index: uts-headers/usr/src/uts/Makefile.uts
===================================================================
--- uts-headers.orig/usr/src/uts/Makefile.uts 2012-10-08 00:25:50.000000000 +0000
+++ uts-headers/usr/src/uts/Makefile.uts 2012-11-18 14:51:08.803065447 +0000
@@ -199,7 +199,7 @@
# the kernel code. This "=" removes the search path built in
# Makefile.master inside CPPFLAGS. Ditto for AS_CPPFLAGS.
#
-CPPFLAGS = $(ALWAYS_DEFS) $(ALL_DEFS) $(CONFIG_DEFS) \
+CPPFLAGS = -I$(ROOT)/usr/include $(ALWAYS_DEFS) $(ALL_DEFS) $(CONFIG_DEFS) \
$(INCLUDE_PATH) $(EXTRA_OPTIONS)
ASFLAGS += -P
AS_CPPFLAGS = $(ALWAYS_DEFS) $(ALL_DEFS) $(CONFIG_DEFS) $(AS_DEFS) \