diff --git a/configure/tools/convertRelease.pl b/configure/tools/convertRelease.pl index 414bdc4b2..902fcb18e 100755 --- a/configure/tools/convertRelease.pl +++ b/configure/tools/convertRelease.pl @@ -168,6 +168,16 @@ sub configAppInclude { next unless (-d "$path/lib/$arch"); print OUT "${app}_LIB = \$($app)/lib/$arch\n"; } + # We can't just include TOP in the foreach list: + # 1. The lib directory probably doesn't exist yet, and + # 2. We need an abolute path but $(TOP_LIB) is relative + $path = $macros{"TOP"}; + print OUT "SHRLIB_SEARCH_DIRS += $path/lib/$arch\n"; + foreach $app (@includes) { + $path = $macros{$app}; + next unless (-d "$path/lib/$arch"); + print OUT "SHRLIB_SEARCH_DIRS += \$(${app}_LIB)\n"; + } } foreach $app (@includes) { $path = $macros{$app};