diff --git a/3rdp/build/Common.gmake b/3rdp/build/Common.gmake
index 53e90f38624cfc1ef9f0ca8c6ffbce1bcc0593aa..f9e762131995a137b2dee3ce718128897b200571 100644
--- a/3rdp/build/Common.gmake
+++ b/3rdp/build/Common.gmake
@@ -56,7 +56,6 @@ CRYPT_IDIR :=	$(3RDPODIR)/cl
 
 JS_CFLAGS += -DJAVASCRIPT $(NSPR_CFLAGS)
 JS_LDFLAGS += $(NSPR_LDFLAGS)
-JS_LIBS += $(NSPR_LIBS)
 
 ifdef JSLIB
  JS_NOBUILD:=1
@@ -93,6 +92,7 @@ else
  JS_DEPS := js
  JS_LIBS += $(JSLIBDIR)$(DIRSEP)libmozjs185-1.0.a
 endif
+JS_LIBS += $(NSPR_LIBS)
  
 # Put it all together...