void-packages/srcpkgs/nss/patches/native-nsinstall-cflags.patch

22 lines
434 B
Diff

--- a/nss/coreconf/nsinstall/Makefile
+++ b/nss/coreconf/nsinstall/Makefile
@@ -15,6 +15,10 @@ PROGRAM = nsinstall
# Indicate that this directory builds build tools.
INTERNAL_TOOLS = 1
+ifdef NATIVE_CC
+NSPR_INCLUDE_DIR :=
+NSPR_LIB_DIR := /usr/lib
+endif
include $(DEPTH)/coreconf/config.mk
@@ -32,6 +36,7 @@ endif
ifdef NATIVE_FLAGS
OS_CFLAGS=$(NATIVE_FLAGS)
+XCFLAGS = $(NATIVE_FLAGS)
endif
ifdef NATIVE_LDFLAGS