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

Nathan Beyer commented on THRIFT-1673:
--------------------------------------

Do you know what specific flags are missing? When I made the following change 
to extconf.rb, the flags seem to be copied from the original Ruby build 
appropriately.

{code}
Index: ext/extconf.rb
===================================================================
--- ext/extconf.rb      (revision 1392514)
+++ ext/extconf.rb      (working copy)
@@ -22,8 +22,6 @@
 else
   require 'mkmf'
 
-  $CFLAGS = "-g -O2 -Wall -Werror " + Config::CONFIG["CFLAGS"]
-
   have_func("strlcpy", "string.h")
 
   create_makefile 'thrift_native'
{code}

How is the original situation recreated?
                
> 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