summaryrefslogtreecommitdiff
path: root/ltmain.sh
diff options
context:
space:
mode:
Diffstat (limited to 'ltmain.sh')
-rwxr-xr-xltmain.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/ltmain.sh b/ltmain.sh
index f07ffc8b3c187..fcc4d744b45ec 100755
--- a/ltmain.sh
+++ b/ltmain.sh
@@ -9432,7 +9432,8 @@ dlpreopen='$dlprefiles'
# Directory that this library needs to be installed in:
libdir='$install_libdir'"
- if test "$installed" = no && test "$need_relink" = yes; then
+ if test "$installed" = no && test "$need_relink" = yes && \
+ test -n "$relink_command"; then
$ECHO >> $output "\
relink_command=\"$relink_command\""
fi