]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
libtool.m4: Add run path when linking with tcc
authorVincent Lefevre <vincent@vinc17.net>
Fri, 22 May 2015 09:27:13 +0000 (11:27 +0200)
committerIleana Dumitrescu <ileanadumitrescu95@gmail.com>
Tue, 22 Oct 2024 17:02:16 +0000 (20:02 +0300)
https://debbugs.gnu.org/cgi/bugreport.cgi?bug=20622
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=814091

m4/libtool.m4

index 4b1b9d9365b4877252db21d12b86040af5396b7a..7875302a4b72be4a804e2ae2bf21b314fccc0215 100644 (file)
@@ -5316,6 +5316,7 @@ _LT_EOF
 
        case $cc_basename in
        tcc*)
+         _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
          _LT_TAGVAR(export_dynamic_flag_spec, $1)='-rdynamic'
          ;;
        xlf* | bgf* | bgxlf* | mpixlf*)
@@ -5874,6 +5875,7 @@ _LT_EOF
        # Fabrice Bellard et al's Tiny C Compiler
        _LT_TAGVAR(ld_shlibs, $1)=yes
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
+       _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
        ;;
       esac
       ;;