diff options
author | wtchang%redhat.com <devnull@localhost> | 2005-11-08 22:03:17 +0000 |
---|---|---|
committer | wtchang%redhat.com <devnull@localhost> | 2005-11-08 22:03:17 +0000 |
commit | 679df5a910061279e38ffd2c711cfa29082d892d (patch) | |
tree | b76ad30f528783b29ec808eb014405b031c3cf5d | |
parent | 1e93705c6ad534b303ecf131727bee421aa033a4 (diff) | |
download | nss-hg-679df5a910061279e38ffd2c711cfa29082d892d.tar.gz |
Bugzilla Bug 311432: renamed USE_FP_CODE as ECL_USE_FP. Do not set
ECL_USE_FP to 1 on Linux x86 to work around the bug. Moved a dependency
rule to the appropriate section of the makefile. r=nelsonb.
-rw-r--r-- | security/nss/lib/freebl/Makefile | 28 |
1 files changed, 13 insertions, 15 deletions
diff --git a/security/nss/lib/freebl/Makefile b/security/nss/lib/freebl/Makefile index 3a9af3529..491696ac1 100644 --- a/security/nss/lib/freebl/Makefile +++ b/security/nss/lib/freebl/Makefile @@ -143,16 +143,9 @@ ifeq ($(CPU_ARCH),x86) ASFILES = mpi_x86.s DEFINES += -DMP_ASSEMBLY_MULTIPLY -DMP_ASSEMBLY_SQUARE DEFINES += -DMP_ASSEMBLY_DIV_2DX1D - USE_FP_CODE = 1 + # The floating point ECC code doesn't work on Linux x86 (bug 311432). + #ECL_USE_FP = 1 endif -ifdef NSS_ENABLE_ECC - ifdef USE_FP_CODE - #enable floating point ECC code - DEFINES += -DECL_USE_FP - ECL_SRCS += ecp_fp160.c ecp_fp192.c ecp_fp224.c ecp_fp.c - ECL_HDRS += ecp_fp.h - endif -endif # NSS_ENABLE_ECC endif # Linux ifeq ($(OS_TARGET),AIX) @@ -324,11 +317,7 @@ ifeq ($(CPU_ARCH),sparc) DEFINES += -DMP_USING_MONT_MULF -DMP_MONT_USE_MP_MUL endif - ifdef NSS_ENABLE_ECC - DEFINES += -DECL_USE_FP - ECL_SRCS += ecp_fp160.c ecp_fp192.c ecp_fp224.c ecp_fp.c - ECL_HDRS += ecp_fp.h - endif # NSS_ENABLE_ECC + ECL_USE_FP = 1 else # Solaris for non-sparc family CPUs ifdef NS_USE_GCC @@ -362,7 +351,14 @@ else endif # Solaris for non-sparc family CPUs endif # target == SunOS -$(OBJDIR)/sysrand$(OBJ_SUFFIX): sysrand.c unix_rand.c win_rand.c mac_rand.c os2_rand.c +ifdef NSS_ENABLE_ECC + ifdef ECL_USE_FP + #enable floating point ECC code + DEFINES += -DECL_USE_FP + ECL_SRCS += ecp_fp160.c ecp_fp192.c ecp_fp224.c ecp_fp.c + ECL_HDRS += ecp_fp.h + endif +endif # NSS_ENABLE_ECC ####################################################################### # (5) Execute "global" rules. (OPTIONAL) # @@ -413,6 +409,8 @@ $(ECL_OBJS): $(ECL_HDRS) +$(OBJDIR)/sysrand$(OBJ_SUFFIX): sysrand.c unix_rand.c win_rand.c mac_rand.c os2_rand.c + $(OBJDIR)/$(PROG_PREFIX)mpprime$(OBJ_SUFFIX): primes.c $(OBJDIR)/ldvector$(OBJ_SUFFIX) $(OBJDIR)/loader$(OBJ_SUFFIX) : loader.h |