From 1e3677c907d69208563d08febc7f800969acb8be Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Fri, 16 Jan 2009 20:25:36 +0000 Subject: ccc: Darwin/X86: Implement remainder of (non -Z...) generic argument translation. - As is my general strategy, this is initially pedantically compatible with gcc and can be cleaned up later. So, for example, we still pass -static to collect2 4 times if you say '-mkernel -fapple-kext'. ;) llvm-svn: 62353 --- clang/tools/ccc/ccclib/Tools.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'clang/tools/ccc/ccclib/Tools.py') diff --git a/clang/tools/ccc/ccclib/Tools.py b/clang/tools/ccc/ccclib/Tools.py index a12c84a1551..ce87d38255c 100644 --- a/clang/tools/ccc/ccclib/Tools.py +++ b/clang/tools/ccc/ccclib/Tools.py @@ -619,9 +619,8 @@ class Darwin_X86_LinkTool(Tool): def addLinkArgs(self, cmd_args, arch, arglist): # Derived from link spec. - if arglist.getLastArg(arglist.parser.staticOption): - cmd_args.append('-static') - else: + arglist.addAllArgs(cmd_args, arglist.parser.staticOption) + if not arglist.getLastArg(arglist.parser.staticOption): cmd_args.append('-dynamic') if arglist.getLastArg(arglist.parser.f_gnuRuntimeOption): # FIXME: Replace -lobjc in forward args with -- cgit v1.2.3