ports/79119: [PATCH] mplayer with optimized cflags on 5.3
Thomas E. Zander
riggs at rrr.de
Tue Mar 22 10:20:04 UTC 2005
>Number: 79119
>Category: ports
>Synopsis: [PATCH] mplayer with optimized cflags on 5.3
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: maintainer-update
>Submitter-Id: current-users
>Arrival-Date: Tue Mar 22 10:20:03 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator: Thomas E. Zander
>Release: FreeBSD 5.3-RELEASE-p5 i386
>Organization:
>Environment:
System: FreeBSD marvin.riggiland.au 5.3-RELEASE-p5 FreeBSD 5.3-RELEASE-p5 #1: Mon Jan 17 12:02:12 CET 2005 root at marvin.riggiland.au:/usr/obj/usr/src/sys/MARVIN i386
>Description:
On FreeBSD-5.3 systems before importing of lrintf into math.h mplayer
can't be linked if WITH_OPTIMIZED_CFLAGS is defined.
>How-To-Repeat:
>Fix:
Explicitly omit -ffast-math during configure stage. Patch below:
diff -ruN mplayer-old/files/patch-ad mplayer/files/patch-ad
--- mplayer-old/files/patch-ad Tue Mar 15 08:20:53 2005
+++ mplayer/files/patch-ad Tue Mar 22 10:51:40 2005
@@ -1,5 +1,17 @@
--- configure.orig Thu Dec 23 16:36:00 2004
-+++ configure Mon Mar 14 21:58:48 2005
++++ configure Tue Mar 22 10:50:03 2005
+@@ -29,9 +29,9 @@
+ echo >> "$TMPLOG"
+ cat "$TMPC" >> "$TMPLOG"
+ echo >> "$TMPLOG"
+- echo "$_cc $CFLAGS $_inc_extra $_ld_static $_ld_extra $TMPC -o $TMPO $@" >> "$TMPLOG"
++ echo "$_cc $CFLAGS -fno-fast-math $_inc_extra $_ld_static $_ld_extra $TMPC -o $TMPO $@" >> "$TMPLOG"
+ rm -f "$TMPO"
+- ( $_cc $CFLAGS $_inc_extra $_ld_static $_ld_extra "$TMPC" -o "$TMPO" "$@" ) >> "$TMPLOG" 2>&1
++ ( $_cc $CFLAGS -fno-fast-math $_inc_extra $_ld_static $_ld_extra "$TMPC" -o "$TMPO" "$@" ) >> "$TMPLOG" 2>&1
+ TMP="$?"
+ echo >> "$TMPLOG"
+ echo "ldd $TMPO" >> "$TMPLOG"
@@ -359,7 +359,7 @@
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list