{"id":23594,"date":"2018-12-05T15:52:26","date_gmt":"2018-12-05T20:52:26","guid":{"rendered":"https:\/\/mjtsai.com\/blog\/?p=23594"},"modified":"2018-12-07T16:36:07","modified_gmt":"2018-12-07T21:36:07","slug":"rpath-what","status":"publish","type":"post","link":"https:\/\/mjtsai.com\/blog\/2018\/12\/05\/rpath-what\/","title":{"rendered":"@rpath What?"},"content":{"rendered":"<p><a href=\"https:\/\/blog.krzyzanowskim.com\/2018\/12\/05\/rpath-what\/\">Marcin Krzy&#x17C;anowski<\/a>:<\/p>\n<blockquote cite=\"https:\/\/blog.krzyzanowskim.com\/2018\/12\/05\/rpath-what\/\">\n<p><code>@rpath<\/code> stands for <em><strong>R<\/strong>un<strong>path<\/strong> Search Path<\/em>.<\/p>\n<ul>\n<li>In the Xcode, it&rsquo;s set with <code>LD_RUNPATH_SEARCH_PATH<\/code> setting.<\/li>\n<li>In <tt>ld<\/tt> command tool it&rsquo;s set with <code>-rpath<\/code> parameter when linking.\nSo it&rsquo;s a search path for the linker. Runtime Search Path instructs the dynamic linker to search a list of paths in order, to locate the dynamic library.<\/li>\n<\/ul>\n<p>The value of the parameter may be an absolute path (or multiple paths) to a directory, e.g.: <tt>\/usr\/private\/lib<\/tt> or <tt>@executable_path\/Frameworks<\/tt>.<\/p>\n<p>[&#8230;]<\/p>\n<p>However, if we need to modify the  <code>@rpath<\/code> manually, e.g., as a part of installation phase - there&rsquo;s an app for that: <tt>install_name_tool<\/tt>.<\/p>\n<\/blockquote>","protected":false},"excerpt":{"rendered":"<p>Marcin Krzy&#x17C;anowski: @rpath stands for Runpath Search Path. In the Xcode, it&rsquo;s set with LD_RUNPATH_SEARCH_PATH setting. In ld command tool it&rsquo;s set with -rpath parameter when linking. So it&rsquo;s a search path for the linker. Runtime Search Path instructs the dynamic linker to search a list of paths in order, to locate the dynamic library. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"apple_news_api_created_at":"2018-12-05T20:52:28Z","apple_news_api_id":"6c300d4e-4f57-48ea-b748-1ea77d5f0f1b","apple_news_api_modified_at":"2018-12-07T21:36:10Z","apple_news_api_revision":"AAAAAAAAAAAAAAAAAAAAAA==","apple_news_api_share_url":"https:\/\/apple.news\/AbDANTk9XSOq3SB6nfV8PGw","apple_news_coverimage":0,"apple_news_coverimage_caption":"","apple_news_is_hidden":false,"apple_news_is_paid":false,"apple_news_is_preview":false,"apple_news_is_sponsored":false,"apple_news_maturity_rating":"","apple_news_metadata":"\"\"","apple_news_pullquote":"","apple_news_pullquote_position":"","apple_news_slug":"","apple_news_sections":"\"\"","apple_news_suppress_video_url":false,"apple_news_use_image_component":false,"footnotes":""},"categories":[4],"tags":[205,30,1609,71,226],"class_list":["post-23594","post","type-post","status-publish","format-standard","hentry","category-programming-category","tag-dyld","tag-mac","tag-macos-10-14","tag-programming","tag-xcode"],"apple_news_notices":[],"_links":{"self":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/23594","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/comments?post=23594"}],"version-history":[{"count":2,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/23594\/revisions"}],"predecessor-version":[{"id":23628,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/23594\/revisions\/23628"}],"wp:attachment":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/media?parent=23594"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/categories?post=23594"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/tags?post=23594"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}