diff options
author | bf <bf@FreeBSD.org> | 2010-08-29 16:52:36 +0800 |
---|---|---|
committer | bf <bf@FreeBSD.org> | 2010-08-29 16:52:36 +0800 |
commit | 2c2c049e89614e26fdd505f76e892a122943493d (patch) | |
tree | bf38c9403eb6ff812522576bb6704ed5bbc8ba91 /math/msieve/Makefile | |
parent | 1cbc25425b2ad9ef0ead342797489ad91a14f955 (diff) | |
download | freebsd-ports-gnome-2c2c049e89614e26fdd505f76e892a122943493d.tar.gz freebsd-ports-gnome-2c2c049e89614e26fdd505f76e892a122943493d.tar.zst freebsd-ports-gnome-2c2c049e89614e26fdd505f76e892a122943493d.zip |
Fix build
Reported by: QAT
Approved by: makc (co-mentor)
Diffstat (limited to 'math/msieve/Makefile')
-rw-r--r-- | math/msieve/Makefile | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/math/msieve/Makefile b/math/msieve/Makefile index 4a90e2fcafa6..1102041b7a8f 100644 --- a/math/msieve/Makefile +++ b/math/msieve/Makefile @@ -20,10 +20,9 @@ BUILD_DEPENDS= ${LOCALBASE}/lib/libecm.a:${PORTSDIR}/math/gmp-ecm WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} USE_GMAKE= yes -MAKE_ENV= CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include" \ - LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib" \ - PTHREAD_LIBS="${PTHREAD_LIBS}" \ - ECM=1 +CFLAGS+= -D_FILE_OFFSET_BITS=64 -I${LOCALBASE}/include +LDFLAGS+= -L${LOCALBASE}/lib +MAKE_ENV= LDFLAGS="${LDFLAGS}" PTHREAD_LIBS="${PTHREAD_LIBS}" ECM=1 PLIST_FILES= bin/msieve lib/libmsieve.a include/msieve/msieve.h \ include/msieve/mp.h include/msieve/util.h @@ -35,9 +34,7 @@ OPTIONS= OCFLAGS "Enable optimized CFLAGS" On .include <bsd.port.pre.mk> .if !defined(WITHOUT_OCFLAGS) -CFLAGS+= -O3 -ffast-math -fomit-frame-pointer -DNDEBUG -D_FILE_OFFSET_BITS=64 -.else -CFLAGS+= -D_FILE_OFFSET_BITS=64 +CFLAGS+= -O3 -ffast-math -fomit-frame-pointer -DNDEBUG .endif .if ${OSVERSION} >= 700042 && ${ARCH} == "sparc64" |