+ if options.ccall and options.raw:
+ # ccall implies that we include the symbol resolution code...
+ print >>sys.stderr, "Including symbol resolution code because of -c."
+ options.raw = False
+
+ if not options.raw:
+ for d in ['data', '/usr/lib/bold/', '/usr/local/lib/bold', '.']:
+ f = os.path.join(d, 'bold_ibh-x86_64.o')
+ try:
+ linker.add_object(f)
+ break
+ except UnsupportedObject, e:
+ # file was found, but is not recognized
+ print >>sys.stderr, e
+ return 1
+ except IOError, e:
+ # not found, try next directory
+ pass
+ else:
+ print >>sys.stderr, "Could not find boldsymres-x86_64.o."
+ return 1
+
+ if options.shlibs:
+ for shlib in options.shlibs:
+ try:
+ linker.add_shlib(shlib)
+ except LibNotFound, e:
+ print >>sys.stderr, e
+ return 1
+