Update of /cvsroot/fink/dists/10.7/stable/main/finkinfo/libs
In directory vz-cvs-3.sog:/tmp/cvs-serv3650

Modified Files:
        libx264-118-shlibs.info 
Log Message:
work around a bug that clang (but not gcc) tickles in 64bit asm code

Index: libx264-118-shlibs.info
===================================================================
RCS file: 
/cvsroot/fink/dists/10.7/stable/main/finkinfo/libs/libx264-118-shlibs.info,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- libx264-118-shlibs.info     30 Mar 2012 23:38:00 -0000      1.1
+++ libx264-118-shlibs.info     12 Aug 2012 13:13:56 -0000      1.2
@@ -1,6 +1,6 @@
 Package: libx264-118-shlibs
 Version: 0.0.20111013
-Revision: 3
+Revision: 4
 ###
 BuildDepends: x11-dev, yasm (>= 0.8.0-1)
 Depends: x11
@@ -23,6 +23,27 @@
        --enable-pic \
        --host=%m-apple-darwin`uname -r`
 <<
+CompileScript: <<
+       #!/bin/sh -ev
+       %{default_script}
+       ### change CFLAGS to use -O1 to avoid clang issue
+       #export TMPCFLAGS="`grep CFLAGS config.mak | cut -f 2- -d '=' | sed 
s/O3/O1/`"
+       #printenv TMPCFLAGS
+       #gcc ${TMPCFLAGS} -c -o encoder/analyse.o encoder/analyse.c
+       ### just to make sure
+       #unset TMPCFLAGS
+       #make
+       ### copy config.mak to modify the -O flag
+       cp config.mak config1.mak
+       perl -pi -e 's|-O3|-O1|g' config1.mak
+       ### now have Makefile import config1.mak and build encoder/analyse.o
+       perl -pi -e 's|config.mak|config1.mak|g' Makefile
+       rm encoder/analyse.o
+       make encoder/analyse.o
+       ### return to normal and remake
+       perl -pi -e 's|config1.mak|config.mak|g' Makefile
+       make
+<<
 ###
 InstallScript: <<
   make install DESTDIR=%d
@@ -75,6 +96,12 @@
 
 Static library removed beginning with library version -115-.
 <<
+DescPort: <<
+-O1 set for clang issue: http://llvm.org/bugs/show_bug.cgi?id=11859
+CompileScript modified so that only encoder/analyse.o is built with -O1
+Supposedly fixed by x264 commit 02c3d5ec58d6bcbc5e22715ae80d53d8556f3c8f
+from Wed Feb 1 2012.
+<<
 ###
 License: GPL
 Maintainer: Hanspeter Niederstrasser <nie...@users.sourceforge.net>


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Fink-commits mailing list
Fink-commits@lists.sourceforge.net
http://news.gmane.org/gmane.os.apple.fink.cvs

Reply via email to