summaryrefslogtreecommitdiff
path: root/Makefile.fips
diff options
context:
space:
mode:
authorsteve <steve>2011-02-17 19:03:51 +0000
committersteve <steve>2011-02-17 19:03:51 +0000
commit3457516ea853c50f9dd7ba6815f061106d415e6b (patch)
treefc831ee6667e2cfec54bfb7815b96c8a5b1fe8cf /Makefile.fips
parent5d436d2eb0ac4bcf4530ae94ff6a4bf916f490b4 (diff)
downloadopenssl-3457516ea853c50f9dd7ba6815f061106d415e6b.tar.gz
Make -DOPENSSL_FIPSSYMS work for assembly language builds.
Diffstat (limited to 'Makefile.fips')
-rw-r--r--Makefile.fips9
1 files changed, 7 insertions, 2 deletions
diff --git a/Makefile.fips b/Makefile.fips
index 2344a5823..f8307cbf6 100644
--- a/Makefile.fips
+++ b/Makefile.fips
@@ -78,7 +78,7 @@ LIBDIR=lib
# dependent assembler flags. E.g. if you throw -mcpu=ultrasparc at SPARC
# gcc, then the driver will automatically translate it to -xarch=v8plus
# and pass it down to assembler.
-AS=$(CC) -c
+#AS=$(CC) -c
ASFLAG=$(CFLAG)
# For x86 assembler: Set PROCESSOR to 386 if you want to support
@@ -205,7 +205,7 @@ CLEARENV= TOP= && unset TOP $${LIB+LIB} $${LIBS+LIBS} \
BUILDENV= PLATFORM='$(PLATFORM)' PROCESSOR='$(PROCESSOR)' \
CC='$(CC)' CFLAG='$(CFLAG)' \
- AS='$(CC)' ASFLAG='$(CFLAG) -c' \
+ ASFLAG='$(CFLAG) -c' \
AR='$(AR)' NM='$(NM)' RANLIB='$(RANLIB)' \
CROSS_COMPILE='$(CROSS_COMPILE)' \
PERL='$(PERL)' ENGDIRS='$(ENGDIRS)' \
@@ -367,6 +367,11 @@ build_crypto:
else \
ARX='${AR}' ; \
fi ; export ARX ; \
+ if [ $(FIPSCANISTERINTERNAL) = "y" ]; then \
+ AS='$(PERL) $${TOP}/util/fipsas.pl $${TOP} $${<} $(CC)' ; \
+ else \
+ AS='$(CC) -c' ; \
+ fi ; export AS ; \
dir=crypto; target=all; $(BUILD_ONE_CMD)
build_ssl:
@dir=ssl; target=all; $(BUILD_ONE_CMD)