mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-24 04:33:24 +00:00
[Maintainer Update]: fix arch-related issues
Received email stating "build fails on amd64 system with a message about unsupported instructions. [...] Modifying patch-Makefile so that -m486 / -mtune 486 option is removed fixed the problem for me." Updated Makefile to add PORTREVISION so that updates will be seen by ports-tools, implemented arch suggestions for fixes, removing most mention of architecture specific instructions. Those will likely be in make.conf, anyway, and if so will be passed along due to inclusion. PR: ports/116379 Submitted by: shoemaker@bluebottle.com (Jonathan Shoemaker)
This commit is contained in:
parent
970d2479cc
commit
e2f3245abc
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=199922
@ -7,6 +7,7 @@
|
||||
|
||||
PORTNAME= crafty
|
||||
PORTVERSION= 20.14
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= games
|
||||
MASTER_SITES= ftp://ftp.cis.uab.edu/pub/hyatt/pgn/:data \
|
||||
ftp://ftp.cis.uab.edu/pub/hyatt/documentation/:doc \
|
||||
@ -49,19 +50,11 @@ OPT= -DHASHSTATS -DTRACE -DBOOKDIR=\\\"${WITH_BOOKDIR}\\\" \
|
||||
-DRCDIR=\\\"${WITH_RCDIR}\\\" \
|
||||
-DTBDIR=\\\"${WITH_TBDIR}\\\" \
|
||||
-DPERSDIR=\\\"${WITH_PERSDIR}\\\"
|
||||
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if ${ARCH} == "i386"
|
||||
OPT+= -DINLINE32
|
||||
# XXX Someone with ASM knowledge would have to fix the Sparc.S
|
||||
.elif ${ARCH} == "sparc64"
|
||||
OPT+= -DINLINE32
|
||||
CFLAGS+= '$(CFLAGS) -D_REENTRANT -O3 -Wall \
|
||||
-fomit-frame-pointer -funroll-all-loops \
|
||||
-finline-functions -ffast-math' \
|
||||
.else
|
||||
OPT+= -DFAST
|
||||
.endif
|
||||
|
||||
MAKE_ENV+= opt="${OPT}" target=${OPSYS} CXFLAGS="${CXXFLAGS}"
|
||||
|
@ -8,7 +8,7 @@
|
||||
- CXFLAGS=$(CFLAGS) \
|
||||
- LDFLAGS=$(LDFLAGS) \
|
||||
- opt='$(opt) -DINLINE32' \
|
||||
+ CFLAGS+='-fomit-frame-pointer -mtune=i486 -O3 -Wall' \
|
||||
+ CFLAGS+='-fomit-frame-pointer -Wall' \
|
||||
+ CXFLAGS+='$(CXXFLAGS)' \
|
||||
+ LDFLAGS='$(LDFLAGS) -lstdc++' \
|
||||
+ opt='$(opt)' \
|
||||
|
Loading…
Reference in New Issue
Block a user