- Target *hdr2=builder.get_header(*i, path, package->get_build_info().incpath);
- if(hdr2 && !contains(depends, hdr2))
+ Target *hdr2=builder.get_header(*i, arch, path, incpath);
+ if(hdr2 && find(depends.begin(), depends.end(), hdr2)==depends.end())