diff --git a/config/rules.mk b/config/rules.mk index 91eb3ee5c73..3675b8bc201 100644 --- a/config/rules.mk +++ b/config/rules.mk @@ -556,6 +556,9 @@ TAG_PROGRAM = xargs etags -a ifneq ($(CPPSRCS)$(CMMSRCS),) CPP_PROG_LINK = 1 endif +ifneq ($(HOST_CPPSRCS)$(HOST_CMMSRCS),) +HOST_CPP_PROG_LINK = 1 +endif # # Make sure to wrap static libs inside linker specific flags to turn on & off @@ -1085,11 +1088,11 @@ ifdef MSMANIFEST_TOOL fi endif # MSVC with manifest tool else -ifeq ($(CPP_PROG_LINK),1) +ifeq ($(HOST_CPP_PROG_LINK),1) $(HOST_CXX) -o $@ $(HOST_CXXFLAGS) $(HOST_LDFLAGS) $(HOST_PROGOBJS) $(HOST_LIBS) $(HOST_EXTRA_LIBS) else $(HOST_CC) -o $@ $(HOST_CFLAGS) $(HOST_LDFLAGS) $(HOST_PROGOBJS) $(HOST_LIBS) $(HOST_EXTRA_LIBS) -endif # CPP_PROG_LINK +endif # HOST_CPP_PROG_LINK endif endif diff --git a/js/src/config/rules.mk b/js/src/config/rules.mk index 91eb3ee5c73..3675b8bc201 100644 --- a/js/src/config/rules.mk +++ b/js/src/config/rules.mk @@ -556,6 +556,9 @@ TAG_PROGRAM = xargs etags -a ifneq ($(CPPSRCS)$(CMMSRCS),) CPP_PROG_LINK = 1 endif +ifneq ($(HOST_CPPSRCS)$(HOST_CMMSRCS),) +HOST_CPP_PROG_LINK = 1 +endif # # Make sure to wrap static libs inside linker specific flags to turn on & off @@ -1085,11 +1088,11 @@ ifdef MSMANIFEST_TOOL fi endif # MSVC with manifest tool else -ifeq ($(CPP_PROG_LINK),1) +ifeq ($(HOST_CPP_PROG_LINK),1) $(HOST_CXX) -o $@ $(HOST_CXXFLAGS) $(HOST_LDFLAGS) $(HOST_PROGOBJS) $(HOST_LIBS) $(HOST_EXTRA_LIBS) else $(HOST_CC) -o $@ $(HOST_CFLAGS) $(HOST_LDFLAGS) $(HOST_PROGOBJS) $(HOST_LIBS) $(HOST_EXTRA_LIBS) -endif # CPP_PROG_LINK +endif # HOST_CPP_PROG_LINK endif endif