Only pass --copy-dt-needed-entries with GNU linker
This commit is contained in:
@@ -75,7 +75,8 @@ namespace Flax.Build.Platforms
|
||||
|
||||
args.Add("-Wl,-rpath,\"\\$ORIGIN\"");
|
||||
//args.Add("-Wl,--as-needed");
|
||||
args.Add("-Wl,--copy-dt-needed-entries");
|
||||
if (LdKind == "bfd")
|
||||
args.Add("-Wl,--copy-dt-needed-entries");
|
||||
args.Add("-Wl,--hash-style=gnu");
|
||||
//args.Add("-Wl,--build-id");
|
||||
|
||||
|
||||
@@ -107,8 +107,8 @@ namespace Flax.Build.Platforms
|
||||
}
|
||||
if (LdPath == null)
|
||||
{
|
||||
LdPath = UnixPlatform.Which("ld");
|
||||
LdKind = null;
|
||||
LdPath = UnixPlatform.Which("ld"); // ld.bfd
|
||||
LdKind = "bfd";
|
||||
}
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user