add opensuse toolchain support, patch by Ismail Donmez!

llvm-svn: 131857
This commit is contained in:
Chris Lattner 2011-05-22 16:45:07 +00:00
parent bc6f5bfa0a
commit d075c82f8c
1 changed files with 8 additions and 4 deletions

View File

@ -1443,7 +1443,7 @@ Linux::Linux(const HostInfo &Host, const llvm::Triple &Triple)
LinuxDistro Distro = DetectLinuxDistro(Arch);
if (IsUbuntu(Distro)) {
if (IsOpenSuse(Distro) || IsUbuntu(Distro)) {
ExtraOpts.push_back("-z");
ExtraOpts.push_back("relro");
}
@ -1451,11 +1451,12 @@ Linux::Linux(const HostInfo &Host, const llvm::Triple &Triple)
if (Arch == llvm::Triple::arm || Arch == llvm::Triple::thumb)
ExtraOpts.push_back("-X");
if (IsRedhat(Distro) || Distro == UbuntuMaverick || Distro == UbuntuNatty)
if (IsRedhat(Distro) || IsOpenSuse(Distro) || Distro == UbuntuMaverick ||
Distro == UbuntuNatty)
ExtraOpts.push_back("--hash-style=gnu");
if (IsDebian(Distro) || Distro == UbuntuLucid || Distro == UbuntuJaunty ||
Distro == UbuntuKarmic)
if (IsDebian(Distro) || IsOpenSuse(Distro) || Distro == UbuntuLucid ||
Distro == UbuntuJaunty || Distro == UbuntuKarmic)
ExtraOpts.push_back("--hash-style=both");
if (IsRedhat(Distro))
@ -1466,6 +1467,9 @@ Linux::Linux(const HostInfo &Host, const llvm::Triple &Triple)
Distro == UbuntuKarmic || Distro == UbuntuNatty)
ExtraOpts.push_back("--build-id");
if (IsOpenSuse(Distro))
ExtraOpts.push_back("--dynamic-tags");
if (Distro == ArchLinux)
Lib = "lib";