liboil success

Ryan Schmidt ryandesign at macports.org
Wed Dec 6 23:39:42 PST 2006


On Dec 7, 2006, at 00:40, Robert J. Hansen wrote:

> As it turns out, the bits of half-remembered gas were right.  It was a
> problem with the .balign and .rept statements not being present in the
> version of gas used by Apple.
>
> The fix is fairly simple, although a bit tedious.
>
> 	* All instances of ".balign 16" need to be replaced
> 	  with ".align 4".
>
> 	* All instances of ".rept 8"/".endr" need to be unrolled
> 	  into linear statements, since Apple gas doesn't
> 	  understand .rept.  E.g.:
>
> 	  .rept 2
> 	  .foo
> 	  .endr
>
> 	  ... gets unrolled into
>
> 	  .foo
> 	  .foo
>
> Hopefully this problem will get fixed by the liboil guys at  
> freedesktop.
>  If not, then I hope this is useful to the next poor schmuck who  
> gets to
> wrestle with the problem.  Enjoy!

Could the reinplace command be used in the portfile to automate these  
changes?

Also, shouldn't we update to liboil 0.3.10? Unless someone knows a  
reason we should not.

If someone with an Intel Mac can provide the necessary patches to the  
portfile that would be most helpful.





More information about the macports-users mailing list