summaryrefslogtreecommitdiff
path: root/security/nss/lib/fortcrypt/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'security/nss/lib/fortcrypt/Makefile')
-rw-r--r--security/nss/lib/fortcrypt/Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/security/nss/lib/fortcrypt/Makefile b/security/nss/lib/fortcrypt/Makefile
index 40609cb98..b3913b3a0 100644
--- a/security/nss/lib/fortcrypt/Makefile
+++ b/security/nss/lib/fortcrypt/Makefile
@@ -109,11 +109,19 @@ endif
ifeq (,$(filter-out WIN%,$(OS_TARGET)))
$(STUBDLL): $(OBJDIR)/maci.o
+ifdef NS_USE_GCC
+ $(LINK_DLL) -Wl,--out-implib,$(STUBLIB) $(OBJDIR)/maci.o $(OS_LIBS)
+else
$(LINK_DLL) -MAP $(DLLBASE) $(subst /,\\,$(OBJDIR)/maci.o $(OS_LIBS))
+endif
$(OBJDIR)/maci.o: maci.c
+ifdef NS_USE_GCC
+ $(CC) -o $@ -c $(CFLAGS) $<
+else
$(CC) -Fo$@ -c $(CFLAGS) $<
endif
+endif
#
# The following rules packages the shared library into a JAR,