Ticket #29842: muniversal.libtool.patch

File muniversal.libtool.patch, 1.5 KB (added by jeremyhu (Jeremy Huddleston Sequoia), 13 years ago)

muniversal patch (untested)

  • muniversal-1.0.tcl

     
    451451                            ui_debug "universal: merge: ${prefixDir}/${fl} is identical in ${base1} and ${base2}"
    452452                        } else {
    453453                            # Actually try to merge the files
    454                             # First try lipo
     454                            # First try lipo, then libtool
    455455                            if { ! [catch {system "/usr/bin/lipo -create \"${dir1}/${fl}\" \"${dir2}/${fl}\" -output \"${dir}/${fl}\""}] } {
    456456                                # lipo worked
    457457                                ui_debug "universal: merge: lipo created ${prefixDir}/${fl}"
     458                            } elseif { ! [catch {system "/usr/bin/libtool \"${dir1}/${fl}\" \"${dir2}/${fl}\" -o \"${dir}/${fl}\""}] } {
     459                                # libtool worked
     460                                ui_debug "universal: merge: libtool created ${prefixDir}/${fl}"
    458461                            } else {
    459                                 # lipo has failed, so assume they are text files to be merged
     462                                # lipo and libtool have failed, so assume they are text files to be merged
    460463                                set dontdiff no
    461464                                foreach dont ${merger_dont_diff} {
    462465                                    if { ${dont}=="${prefixDir}/${fl}" } {