Bjorn Winckler wrote:
> Trying to compile Vim with Ruby support results in the following linking
> error:
>
> ... lots of ld warnings removed ...
> ld warning: in objects/version.o, file is not of required architecture
> Undefined symbols for architecture ppc:
> "_main", referenced from:
> start in crt1.10.5.o
> ld: symbol(s) not found for architecture ppc
> collect2: ld returned 1 exit status
> lipo: can't open input file:
> /var/folders/nu/nupuYQ6lF0uquqdm-77RL++++TI/-Tmp-//ccXXt4cQ.out (No
> such file or directory)
> make: *** [Vim] Error 1
>
>
> The problem (as far as I understand it) is that Ruby was built with
> LDFLAGS including "-arch ppc -arch i386" and these are passed on to
> LDFLAGS in src/auto/config.mk when you run src/configure. My solution
> is to strip these flags before modifying LDFLAGS in the appropriate
> part of src/configure.in. It is a bit of a hack, but I don't see any
> problems with it.
>
> Without this patch you had to manually remove the -arch flags from
> src/auto/config.mk before calling make (unless you were compiling a
> universal binary). With this patch you can compile both a native and
> universal binary (the -arch flags are added by the --with-mac-arch
> switch).
Thanks, I'll put it in the todo list.
--
Tips for aliens in New York: Land anywhere. Central Park, anywhere.
No one will care or indeed even notice.
-- Douglas Adams, "The Hitchhiker's Guide to the Galaxy"
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ download, build and distribute -- http://www.A-A-P.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---