Ticket #48142: patch-install-name.diff

File patch-install-name.diff, 941 bytes (added by jwatzman@…, 9 years ago)
  • configure

    From f1f2b4542902c5bc14788f6c2d4190b422e5901f Mon Sep 17 00:00:00 2001
    From: Jason Evans <jasone@canonware.com>
    Date: Fri, 1 May 2015 08:57:41 -0700
    Subject: [PATCH] Embed full library install when running ld on OS X.
    
    This resolves #228.
    ---
    diff --git a/configure b/configure
    index 2e5496b..3462934 100755
    case "${host}" in 
    48344834        so="dylib"
    48354835        importlib="${so}"
    48364836        force_tls="0"
    4837         DSO_LDFLAGS='-shared -Wl,-dylib_install_name,$(@F)'
     4837        DSO_LDFLAGS='-shared -Wl,-install_name,$(LIBDIR)/$(@F)'
    48384838        SOREV="${rev}.${so}"
    48394839        sbrk_deprecated="1"
    48404840        ;;
  • configure.ac

    diff --git a/configure.ac b/configure.ac
    index 4de81dc..53281a1 100644
    case "${host}" in 
    269269        so="dylib"
    270270        importlib="${so}"
    271271        force_tls="0"
    272         DSO_LDFLAGS='-shared -Wl,-dylib_install_name,$(@F)'
     272        DSO_LDFLAGS='-shared -Wl,-install_name,$(LIBDIR)/$(@F)'
    273273        SOREV="${rev}.${so}"
    274274        sbrk_deprecated="1"
    275275        ;;