I've made a pull request, https://github.com/apple/swift/pull/435, that attempts to fix this problem. I'm not entirely sure why clang is not seeing the flags they are clearly in the argument list.
On Sat, Dec 5, 2015, at 05:15 PM, Dmitri Gribenko wrote: > On Sat, Dec 5, 2015 at 6:28 AM, Ryan Lovelett > <swift-...@ryan.lovelett.me> wrote: > > Dmitri, > > > > Thanks for the extra set of eyes. I have confirmed that moving > > '-lpthread -ldl' to either the beginning or end will allow that step to > > succeed. The part that I'm stuck on is where that linker argument comes > > from in the first place and how to reorder them. Do you happen to have > > any insight on that? > > Ryan, > > Highly likely it is this line that adds them: > > cmake/modules/AddSwift.cmake: list(APPEND result "-lpthread" "-ldl") > > > For the 'final' package build script I plan to make my own preset for > > arch linux that is based on 'mixin_linux_installation'. This is what > > 'buildbot_linux_1404' and 'buildbot_linux_1510' are based on. I just > > want be able to consistently build before I start tweaking parameters. > > Sounds good. > > Dmitri > > -- > main(i,j){for(i=2;;i++){for(j=2;j<i;j++){if(!(i%j)){j=0;break;}}if > (j){printf("%d\n",i);}}} /*Dmitri Gribenko <griboz...@gmail.com>*/ _______________________________________________ swift-dev mailing list swift-dev@swift.org https://lists.swift.org/mailman/listinfo/swift-dev