Revision
119573
Author
jmr@macports.org
Date
2014-04-30 15:49:22 -0700 (Wed, 30 Apr 2014)

Log Message

make sure la_file_list always exists

Modified Paths

Diff

Modified: trunk/base/src/port1.0/portdestroot.tcl (119572 => 119573)


--- trunk/base/src/port1.0/portdestroot.tcl	2014-04-30 22:44:49 UTC (rev 119572)
+++ trunk/base/src/port1.0/portdestroot.tcl	2014-04-30 22:49:22 UTC (rev 119573)
@@ -171,6 +171,7 @@
 
     # Prevent overlinking due to glibtool .la files: https://trac.macports.org/ticket/38010
     ui_debug "Fixing glibtool .la files in destroot for ${subport}"
+    set la_file_list [list]
     fs-traverse -depth fullpath ${destroot} {
         # XXX checking only relative symlinks - rewriting absolute links to point to destroot would be tricky
         if {[file extension $fullpath] eq ".la" && ([file type $fullpath] eq "file" || ([file type $fullpath] eq "link" && [file pathtype [file link $fullpath]] eq "relative"))} {