Makefile.shared: limit .dll image base pinning to FIPS builds.
[openssl.git] / Makefile.shared
index 57e1936b9e219f73fec5ef8bf1e7a6be0a49eccf..7a89019d4b2f90ca92f9a0e4f493f7186ca48b7d 100644 (file)
@@ -295,7 +295,7 @@ link_shlib.mingw:
        SHLIB_SOVER=-$$sover$$arch; \
        SHLIB_SUFFIX=.dll; \
        dll_name=$$SHLIB$$SHLIB_SOVER$$SHLIB_SUFFIX; \
-       base=; [ $(LIBNAME) = "crypto" ] && base=-Wl,--image-base,0x63000000; \
+       base=; [ $(LIBNAME) = "crypto" -a -n "$(FIPSCANLIB)" ] && base=-Wl,--image-base,0x63000000; \
        $(PERL) $(SRCDIR)/util/mkdef.pl 32 $(LIBNAME) \
                | sed -e 's|^\(LIBRARY  *\)$(LIBNAME)32|\1'"$$dll_name"'|' \
                > $(LIBNAME).def; \