#64 Wrong creation of cflags from --target-archs

closed
kimura wataru
build (7)
5
2009-12-05
2009-12-04
OBATA Akio
No

On Mac OS X 10.4.11 with ruby-1.8.7 patchlevel 174 from pkgsrc,
install.rb --target-archs="ppc" result in

---> framework
create /private/var/tmp/obj/pkgsrc/wip/RubyCocoa/work/RubyCocoa-1.0.1/framework/src/objc/osx_ruby.h ...
create /private/var/tmp/obj/pkgsrc/wip/RubyCocoa/work/RubyCocoa-1.0.1/framework/src/objc/osx_intern.h ...
BSROOT="/private/var/tmp/obj/pkgsrc/wip/RubyCocoa/work/RubyCocoa-1.0.1/framework/bridge-support" CFLAGS="ppc" /usr/pkg/bin/ruby18 build.rb

Yes, it will be failed to build, CFLAGS should be "-arch ppc".

It came from typo in framework/post-config.rb:

cflags << archs.gsub(/\a|\s+/, ' -arch ') if archs.size > 0

It should be as following:

cflags << archs.gsub(/\A|\s+/, ' -arch ') if archs.size > 0

Discussion

  • kimura wataru
    kimura wataru
    2009-12-05

    you are right! this problem was fixed r2290.
    thanks!

     
  • kimura wataru
    kimura wataru
    2009-12-05

    • assigned_to: nobody --> kimuraw
    • status: open --> closed