@@ -1621,10 +1621,8 @@ def WriteTarget(
1621
1621
if any (dep .endswith (".so" ) or ".so." in dep for dep in deps ):
1622
1622
# We want to get the literal string "$ORIGIN"
1623
1623
# into the link command, so we need lots of escaping.
1624
- ldflags .append (r"-Wl,-rpath=\$$ORIGIN/lib.%s/" % self .toolset )
1625
- ldflags .append (
1626
- r"-Wl,-rpath-link=\$(builddir)/lib.%s/" % self .toolset
1627
- )
1624
+ ldflags .append (r"-Wl,-rpath=\$$ORIGIN/" )
1625
+ ldflags .append (r"-Wl,-rpath-link=\$(builddir)/" )
1628
1626
library_dirs = config .get ("library_dirs" , [])
1629
1627
ldflags += [("-L%s" % library_dir ) for library_dir in library_dirs ]
1630
1628
self .WriteList (ldflags , "LDFLAGS_%s" % configname )
@@ -2172,14 +2170,16 @@ def ExpandInputRoot(self, template, expansion, dirname):
2172
2170
2173
2171
def _InstallableTargetInstallPath (self ):
2174
2172
"""Returns the location of the final output for an installable target."""
2173
+ # Functionality removed for all platforms to match Xcode and hoist
2174
+ # shared libraries into PRODUCT_DIR for users:
2175
2175
# Xcode puts shared_library results into PRODUCT_DIR, and some gyp files
2176
2176
# rely on this. Emulate this behavior for mac.
2177
- if self .type == "shared_library" and (
2178
- self .flavor != "mac" or self .toolset != "target"
2179
- ):
2180
- # Install all shared libs into a common directory (per toolset) for
2181
- # convenient access with LD_LIBRARY_PATH.
2182
- return "$(builddir)/lib.%s/%s" % (self .toolset , self .alias )
2177
+ # if self.type == "shared_library" and (
2178
+ # self.flavor != "mac" or self.toolset != "target"
2179
+ # ):
2180
+ # # Install all shared libs into a common directory (per toolset) for
2181
+ # # convenient access with LD_LIBRARY_PATH.
2182
+ # return "$(builddir)/lib.%s/%s" % (self.toolset, self.alias)
2183
2183
return "$(builddir)/" + self .alias
2184
2184
2185
2185
0 commit comments