1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-28 01:06:17 +00:00

Set a default optimization level for the lazy and hopeless :).

Requested by:	Nick Hibma <nick.hibma@jrc.it>
This commit is contained in:
Joseph Koshy 1999-08-25 11:25:01 +00:00
parent d3433b2807
commit 5598aec1ef
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=20963

View File

@ -25,8 +25,7 @@ pre-configure:
.if $(MACHINE_ARCH) == "i386"
.if !defined(OPT_ARCH) || (($(OPT_ARCH) != "i486") && ($(OPT_ARCH) != "i586"))
@echo "+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"
@echo "Please considering setting OPT_ARCH to match your hardware to build mpg123"
@echo "optimised for your hardware (e.g: make OPT_ARCH=i486)"
@echo "Note: you can set OPT_ARCH to optimize for your hardware. (Eg:- make OPT_ARCH=i486)"
.if $(PORTOBJFORMAT) == "elf"
@echo "Valid values are: i486, i586"
.else
@ -36,4 +35,17 @@ pre-configure:
.endif
.endif
.if $(PORTOBJFORMAT) == "elf"
OPT_ARCH?= i586
.else
OPT_ARCH?= i486
.endif
# Uncomment this line below to optimise for i486 family CPUs on ELF boxes
# OPT_ARCH= i486
.if defined(OPT_ARCH)
MAKE_ARGS+= OPT_ARCH=$(OPT_ARCH)
.endif
.include <bsd.port.post.mk>