2533fc
diff -up ./nss/cmd/certutil/Makefile.iquote ./nss/cmd/certutil/Makefile
a005ae
--- ./nss/cmd/certutil/Makefile.iquote	2017-04-05 14:23:56.000000000 +0200
a005ae
+++ ./nss/cmd/certutil/Makefile	2017-09-21 16:39:08.680260103 +0200
1b6f66
@@ -37,7 +37,8 @@ include $(CORE_DEPTH)/coreconf/rules.mk
2533fc
 # (6) Execute "component" rules. (OPTIONAL)                           #
2533fc
 #######################################################################
2533fc
 
1b6f66
-
2533fc
+INCLUDES += -iquote $(DIST)/../public/nss
1b6f66
+INCLUDES += -iquote $(DIST)/../private/nss
2533fc
 
2533fc
 #######################################################################
1b6f66
 # (7) Execute "local" rules. (OPTIONAL).                              #
66ebb3
diff -up ./nss/cmd/httpserv/Makefile.iquote ./nss/cmd/httpserv/Makefile
a005ae
--- ./nss/cmd/httpserv/Makefile.iquote	2017-04-05 14:23:56.000000000 +0200
a005ae
+++ ./nss/cmd/httpserv/Makefile	2017-09-21 16:39:08.680260103 +0200
66ebb3
@@ -35,7 +35,8 @@ include $(CORE_DEPTH)/coreconf/rules.mk
66ebb3
 # (6) Execute "component" rules. (OPTIONAL)                           #
66ebb3
 #######################################################################
66ebb3
 
66ebb3
-
66ebb3
+INCLUDES += -iquote $(DIST)/../private/nss
66ebb3
+INCLUDES += -iquote $(DIST)/../public/nss
66ebb3
 
66ebb3
 #######################################################################
66ebb3
 # (7) Execute "local" rules. (OPTIONAL).                              #
66ebb3
diff -up ./nss/cmd/lib/Makefile.iquote ./nss/cmd/lib/Makefile
a005ae
--- ./nss/cmd/lib/Makefile.iquote	2017-04-05 14:23:56.000000000 +0200
a005ae
+++ ./nss/cmd/lib/Makefile	2017-09-21 16:39:08.680260103 +0200
f57139
@@ -38,7 +38,8 @@ include $(CORE_DEPTH)/coreconf/rules.mk
f57139
 # (6) Execute "component" rules. (OPTIONAL)                           #
f57139
 #######################################################################
f57139
 
f57139
-
f57139
+INCLUDES += -iquote $(DIST)/../private/nss
f57139
+INCLUDES += -iquote $(DIST)/../public/nss
f57139
 
f57139
 #######################################################################
f57139
 # (7) Execute "local" rules. (OPTIONAL).                              #
652e94
diff -up ./nss/cmd/modutil/Makefile.iquote ./nss/cmd/modutil/Makefile
a005ae
--- ./nss/cmd/modutil/Makefile.iquote	2017-04-05 14:23:56.000000000 +0200
a005ae
+++ ./nss/cmd/modutil/Makefile	2017-09-21 16:39:08.680260103 +0200
a005ae
@@ -37,7 +37,8 @@ include $(CORE_DEPTH)/coreconf/rules.mk
a005ae
 # (6) Execute "component" rules. (OPTIONAL)                           #
a005ae
 #######################################################################
a005ae
 
a005ae
-
a005ae
+INCLUDES += -iquote $(DIST)/../public/nss
a005ae
+INCLUDES += -iquote $(DIST)/../private/nss
a005ae
 
a005ae
 #######################################################################
a005ae
 # (7) Execute "local" rules. (OPTIONAL).                              #
a005ae
diff -up ./nss/cmd/pk12util/Makefile.iquote ./nss/cmd/pk12util/Makefile
a005ae
--- ./nss/cmd/pk12util/Makefile.iquote	2017-09-21 16:41:23.158209761 +0200
a005ae
+++ ./nss/cmd/pk12util/Makefile	2017-09-21 16:41:44.298730232 +0200
a005ae
@@ -37,7 +37,8 @@ include $(CORE_DEPTH)/coreconf/rules.mk
652e94
 # (6) Execute "component" rules. (OPTIONAL)                           #
652e94
 #######################################################################
652e94
 
652e94
-
652e94
+INCLUDES += -iquote $(DIST)/../public/nss
652e94
+INCLUDES += -iquote $(DIST)/../private/nss
652e94
 
652e94
 #######################################################################
652e94
 # (7) Execute "local" rules. (OPTIONAL).                              #
652e94
diff -up ./nss/cmd/selfserv/Makefile.iquote ./nss/cmd/selfserv/Makefile
a005ae
--- ./nss/cmd/selfserv/Makefile.iquote	2017-04-05 14:23:56.000000000 +0200
a005ae
+++ ./nss/cmd/selfserv/Makefile	2017-09-21 16:39:08.680260103 +0200
652e94
@@ -35,7 +35,8 @@ include $(CORE_DEPTH)/coreconf/rules.mk
652e94
 # (6) Execute "component" rules. (OPTIONAL)                           #
652e94
 #######################################################################
652e94
 
652e94
-
652e94
+INCLUDES += -iquote $(DIST)/../public/nss
652e94
+INCLUDES += -iquote $(DIST)/../private/nss
652e94
 
652e94
 #######################################################################
652e94
 # (7) Execute "local" rules. (OPTIONAL).                              #
652e94
diff -up ./nss/cmd/ssltap/Makefile.iquote ./nss/cmd/ssltap/Makefile
a005ae
--- ./nss/cmd/ssltap/Makefile.iquote	2017-04-05 14:23:56.000000000 +0200
a005ae
+++ ./nss/cmd/ssltap/Makefile	2017-09-21 16:39:08.680260103 +0200
652e94
@@ -39,7 +39,8 @@ include $(CORE_DEPTH)/coreconf/rules.mk
652e94
 # (6) Execute "component" rules. (OPTIONAL)                           #
652e94
 #######################################################################
652e94
 
652e94
-
652e94
+INCLUDES += -iquote $(DIST)/../private/nss
1b6f66
+INCLUDES += -iquote $(DIST)/../public/nss
652e94
 
652e94
 #######################################################################
652e94
 # (7) Execute "local" rules. (OPTIONAL).                              #
652e94
diff -up ./nss/cmd/strsclnt/Makefile.iquote ./nss/cmd/strsclnt/Makefile
a005ae
--- ./nss/cmd/strsclnt/Makefile.iquote	2017-04-05 14:23:56.000000000 +0200
a005ae
+++ ./nss/cmd/strsclnt/Makefile	2017-09-21 16:39:08.681260081 +0200
652e94
@@ -36,7 +36,8 @@ include $(CORE_DEPTH)/coreconf/rules.mk
652e94
 # (6) Execute "component" rules. (OPTIONAL)                           #
652e94
 #######################################################################
652e94
 
652e94
-
652e94
+INCLUDES += -iquote $(DIST)/../public/nss
652e94
+INCLUDES += -iquote $(DIST)/../private/nss
652e94
 
652e94
 #######################################################################
652e94
 # (7) Execute "local" rules. (OPTIONAL).                              #
652e94
diff -up ./nss/cmd/tstclnt/Makefile.iquote ./nss/cmd/tstclnt/Makefile
a005ae
--- ./nss/cmd/tstclnt/Makefile.iquote	2017-04-05 14:23:56.000000000 +0200
a005ae
+++ ./nss/cmd/tstclnt/Makefile	2017-09-21 16:39:08.681260081 +0200
1b6f66
@@ -37,6 +37,8 @@ include $(CORE_DEPTH)/coreconf/rules.mk
652e94
 #######################################################################
652e94
 
1b6f66
 #include ../platlibs.mk
652e94
+INCLUDES += -iquote $(DIST)/../public/nss
652e94
+INCLUDES += -iquote $(DIST)/../private/nss
652e94
 
1b6f66
 #######################################################################
652e94
 # (7) Execute "local" rules. (OPTIONAL).                              #
1b6f66
diff -up ./nss/cmd/vfyserv/Makefile.iquote ./nss/cmd/vfyserv/Makefile
a005ae
--- ./nss/cmd/vfyserv/Makefile.iquote	2017-04-05 14:23:56.000000000 +0200
a005ae
+++ ./nss/cmd/vfyserv/Makefile	2017-09-21 16:39:08.681260081 +0200
1b6f66
@@ -37,6 +37,8 @@ include $(CORE_DEPTH)/coreconf/rules.mk
652e94
 #######################################################################
652e94
 
1b6f66
 #include ../platlibs.mk
652e94
+INCLUDES += -iquote $(DIST)/../public/nss
652e94
+INCLUDES += -iquote $(DIST)/../private/nss
652e94
 
1b6f66
 #######################################################################
1b6f66
 # (7) Execute "local" rules. (OPTIONAL).                              #
66ebb3
diff -up ./nss/coreconf/location.mk.iquote ./nss/coreconf/location.mk
a005ae
--- ./nss/coreconf/location.mk.iquote	2017-04-05 14:23:56.000000000 +0200
a005ae
+++ ./nss/coreconf/location.mk	2017-09-21 16:39:08.681260081 +0200
f57139
@@ -45,6 +45,10 @@ endif
f57139
 
f57139
 ifdef NSS_INCLUDE_DIR
f57139
     INCLUDES += -I$(NSS_INCLUDE_DIR)
f57139
+    ifdef IN_TREE_FREEBL_HEADERS_FIRST
f57139
+        INCLUDES += -iquote $(DIST)/../public/nss
f57139
+        INCLUDES += -iquote $(DIST)/../private/nss
f57139
+    endif
f57139
 endif
f57139
 
f57139
 ifndef NSS_LIB_DIR
a005ae
diff -up ./nss/gtests/ssl_gtest/Makefile.iquote ./nss/gtests/ssl_gtest/Makefile
a005ae
--- ./nss/gtests/ssl_gtest/Makefile.iquote	2017-04-05 14:23:56.000000000 +0200
a005ae
+++ ./nss/gtests/ssl_gtest/Makefile	2017-09-21 16:39:08.682260058 +0200
a005ae
@@ -53,6 +53,8 @@ include $(CORE_DEPTH)/coreconf/rules.mk
a005ae
 # (6) Execute "component" rules. (OPTIONAL)                           #
a005ae
 #######################################################################
a005ae
 
a005ae
+INCLUDES += -iquote $(DIST)/../public/nss
a005ae
+INCLUDES += -iquote $(DIST)/../private/nss
a005ae
 
a005ae
 #######################################################################
a005ae
 # (7) Execute "local" rules. (OPTIONAL).                              #
66ebb3
diff -up ./nss/lib/certhigh/Makefile.iquote ./nss/lib/certhigh/Makefile
a005ae
--- ./nss/lib/certhigh/Makefile.iquote	2017-04-05 14:23:56.000000000 +0200
a005ae
+++ ./nss/lib/certhigh/Makefile	2017-09-21 16:39:08.681260081 +0200
f57139
@@ -38,7 +38,7 @@ include $(CORE_DEPTH)/coreconf/rules.mk
f57139
 # (6) Execute "component" rules. (OPTIONAL)                           #
f57139
 #######################################################################
f57139
 
f57139
-
f57139
+INCLUDES += -iquote $(DIST)/../public/nss
f57139
 
f57139
 #######################################################################
f57139
 # (7) Execute "local" rules. (OPTIONAL).                              #
66ebb3
diff -up ./nss/lib/cryptohi/Makefile.iquote ./nss/lib/cryptohi/Makefile
a005ae
--- ./nss/lib/cryptohi/Makefile.iquote	2017-04-05 14:23:56.000000000 +0200
a005ae
+++ ./nss/lib/cryptohi/Makefile	2017-09-21 16:39:08.681260081 +0200
f57139
@@ -38,7 +38,7 @@ include $(CORE_DEPTH)/coreconf/rules.mk
f57139
 # (6) Execute "component" rules. (OPTIONAL)                           #
f57139
 #######################################################################
f57139
 
f57139
-
f57139
+INCLUDES += -iquote $(DIST)/../public/nss
f57139
 
f57139
 #######################################################################
f57139
 # (7) Execute "local" rules. (OPTIONAL).                              #
66ebb3
diff -up ./nss/lib/libpkix/pkix/checker/Makefile.iquote ./nss/lib/libpkix/pkix/checker/Makefile
a005ae
--- ./nss/lib/libpkix/pkix/checker/Makefile.iquote	2017-04-05 14:23:56.000000000 +0200
a005ae
+++ ./nss/lib/libpkix/pkix/checker/Makefile	2017-09-21 16:39:08.681260081 +0200
66ebb3
@@ -38,7 +38,8 @@ include $(CORE_DEPTH)/coreconf/rules.mk
66ebb3
 # (6) Execute "component" rules. (OPTIONAL)                           #
66ebb3
 #######################################################################
66ebb3
 
66ebb3
-
66ebb3
+INCLUDES += -iquote $(DIST)/../private/nss
1b6f66
+INCLUDES += -iquote $(DIST)/../public/nss
66ebb3
 
66ebb3
 #######################################################################
66ebb3
 # (7) Execute "local" rules. (OPTIONAL).                              #
66ebb3
diff -up ./nss/lib/nss/Makefile.iquote ./nss/lib/nss/Makefile
a005ae
--- ./nss/lib/nss/Makefile.iquote	2017-04-05 14:23:56.000000000 +0200
a005ae
+++ ./nss/lib/nss/Makefile	2017-09-21 16:39:08.681260081 +0200
66ebb3
@@ -37,7 +37,8 @@ include $(CORE_DEPTH)/coreconf/rules.mk
66ebb3
 # (6) Execute "component" rules. (OPTIONAL)                           #
66ebb3
 #######################################################################
66ebb3
 
66ebb3
-
66ebb3
+INCLUDES += -iquote $(DIST)/../public/nss
66ebb3
+INCLUDES += -iquote $(DIST)/../private/nss
66ebb3
 
66ebb3
 #######################################################################
66ebb3
 # (7) Execute "local" rules. (OPTIONAL).                              #
a005ae
diff -up ./nss/lib/pkcs12/Makefile.iquote ./nss/lib/pkcs12/Makefile
a005ae
--- ./nss/lib/pkcs12/Makefile.iquote	2017-09-21 16:39:49.616331555 +0200
a005ae
+++ ./nss/lib/pkcs12/Makefile	2017-09-21 16:40:16.286726596 +0200
a005ae
@@ -39,7 +39,8 @@ include $(CORE_DEPTH)/coreconf/rules.mk
054978
 # (6) Execute "component" rules. (OPTIONAL)                           #
054978
 #######################################################################
054978
 
a005ae
-
054978
+INCLUDES += -iquote $(DIST)/../public/nss
a005ae
+INCLUDES += -iquote $(DIST)/../private/nss
054978
 
054978
 #######################################################################
a005ae
 # (7) Execute "local" rules. (OPTIONAL).                              #
a005ae
diff -up ./nss/lib/ssl/Makefile.iquote ./nss/lib/ssl/Makefile
a005ae
--- ./nss/lib/ssl/Makefile.iquote	2017-04-05 14:23:56.000000000 +0200
a005ae
+++ ./nss/lib/ssl/Makefile	2017-09-21 16:39:08.681260081 +0200
a005ae
@@ -56,6 +56,7 @@ include $(CORE_DEPTH)/coreconf/rules.mk
1b6f66
 # (6) Execute "component" rules. (OPTIONAL)                           #
1b6f66
 #######################################################################
1b6f66
 
1b6f66
+INCLUDES += -iquote $(DIST)/../public/nss
a005ae
 
1b6f66
 
1b6f66
 #######################################################################