Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 Mar 2005 11:17:42 +0100 (CET)
From:      "Thomas E. Zander" <riggs@rrr.de>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/79119: [PATCH] mplayer with optimized cflags on 5.3
Message-ID:  <200503221017.j2MAHg9s008169@marvin.riggiland.au>
Resent-Message-ID: <200503221020.j2MAK3bw097706@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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@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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200503221017.j2MAHg9s008169>