- Re-enable ASM on i386

PR:		ports/122444
Submitted by:	Ralf van der Enden <tremere@cainites.net>
This commit is contained in:
Pav Lucistnik 2008-04-04 15:22:17 +00:00
parent 8ea7b0a83c
commit 6b8ae907c6
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=210518
2 changed files with 8 additions and 9 deletions

View file

@ -7,6 +7,7 @@
PORTNAME= miracl
PORTVERSION= 5.3.2
PORTREVISION= 1
CATEGORIES= math
MASTER_SITES= ftp://ftp.computing.dcu.ie/pub/crypto/ \
${MASTER_SITE_LOCAL}
@ -38,11 +39,18 @@ IGNORE= Builds on x86 and amd64 only
post-patch:
# C{C,XX} safeness
# CFLAGS safeness
.if ${ARCH} == "i386"
@${REINPLACE_CMD} -E \
-e 's|gcc|${CC}|' \
-e 's|g\+\+|${CXX}|' \
-e 's|-O2|${CFLAGS}|' \
.else
@${REINPLACE_CMD} -E \
-e 's|gcc|${CC}|' \
-e 's|g\+\+|${CXX}|' \
-e 's|-O2|${CFLAGS} -fPIC|' \
${WRKSRC}/${BUILDCMD}
.endif
do-build:
@cd ${WRKSRC} && ${SH} ./${BUILDCMD}

View file

@ -1,9 +0,0 @@
diff -Nru mirdef.lnx mirdef.lnx
--- mirdef.lnx 2006-07-12 13:57:00.000000000 +0200
+++ mirdef.lnx 2008-04-03 23:24:04.000000000 +0200
@@ -27,4 +27,4 @@
#define MAXBASE ((mr_small)1<<(MIRACL-1))
-
+#define MR_NOASM