5d3655d1ef
bsd.pkg.mk, to completely master all CFLAGS settings. This fixes the build in the MPLAYER_ENABLE_RUNTIME_CPU_DETECTION=NO case (PR pkg/19946). This isn't the only way this package wantonly disregards buildlink's rule. In any case, binary packages are still problematic, even with the runtime detection, as one of the dependencies (audio/faad2) may not be distributed as a binary.
19 lines
749 B
Makefile
19 lines
749 B
Makefile
# $NetBSD: Makefile.cflags,v 1.2 2003/01/20 22:42:39 fredb Exp $
|
|
|
|
# This must be included after everything else to truly clear ${CFLAGS}
|
|
# in the non-runtime-cpu-detection case. If ${CFLAGS} is non-empty, the
|
|
# configure script refuses to add any optimizations at all.
|
|
|
|
.if ${MPLAYER_ENABLE_RUNTIME_CPU_DETECTION} == YES
|
|
.if ${MACHINE_ARCH} == i386
|
|
# Schedule for the typical machine fast enough to run mplayer. This
|
|
# is nearly optimal for K6-2 as well. Anything slowler will still run
|
|
# (but would probably benefit greatly from turning off the run-time
|
|
# cpu detection).
|
|
CFLAGS= -O3 -ffast-math -fomit-frame-pointer -mcpu=pentiumpro
|
|
.else
|
|
CFLAGS= -O3 -ffast-math -fomit-frame-pointer
|
|
.endif
|
|
.else
|
|
CFLAGS= # Let "configure" do its thing.
|
|
.endif
|