[ 
https://issues.apache.org/jira/browse/THRIFT-1673?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13467090#comment-13467090
 ] 

Jake Farrell commented on THRIFT-1673:
--------------------------------------

To enable the multi arch the CFLAGS from ruby are needed, this is added in the 
extconf with Config::CONFIG["CFLAGS"]. We could skip all other flags that ruby 
was compiled with and just use the arch flags as needed within this ticket 
originally with Config::CONFIG['CFLAGS'].scan( /(-arch )(\S+)/ ).map{|x,y| x + 
y + ' ' }.join(''). Thoughts?
 
                
> Ruby compile flags for extension for multi arch builds (os x)
> -------------------------------------------------------------
>
>                 Key: THRIFT-1673
>                 URL: https://issues.apache.org/jira/browse/THRIFT-1673
>             Project: Thrift
>          Issue Type: Bug
>          Components: Ruby - Library
>    Affects Versions: 0.9
>         Environment: os x
>            Reporter: Jake Farrell
>            Assignee: Jake Farrell
>             Fix For: 0.9
>
>
> ld: warning: ld: warning: ignoring file thrift_native.o, file was built for 
> unsupported file format ( 0xcf 0xfa 0xed 0xfe 0x 7 0x 0 0x 0 0x 1 0x 3 0x 0 
> 0x 0 0x 0 0x 1 0x 0 0x 0 0x 0 ) which is not the architecture being linked 
> (i386): thrift_native.oignoring file struct.o, file was built for unsupported 
> file format ( 0xcf 0xfa 0xed 0xfe 0x 7 0x 0 0x 0 0x 1 0x 3 0x 0 0x 0 0x 0 0x 
> 1 0x 0 0x 0 0x 0 ) which is not the architecture being linked (i386): struct.o

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to