Quick Search:

Mode

Context

Displaying 3 lines of context. None | Less | More | Full

Other Diffs

Ignore

Blank Lines Whitespace: Expand:

Diff

1.143
 
1.144
 
MAIN:gmcgarry:20090214065927
 
cc.c
_>471471                                         pthreads++;
 472472                                 else if (strcmp(argv[i], "-pipe") == 0)
 473473                                         /* NOTHING YET */;
<> 474+                                else if (strcmp(argv[i], "-pedantic") == 0)
  475+                                        /* NOTHING YET */;
474476                                 else
 475477                                         errorx(1, "unknown option %s", argv[i]);
 476478                                 break;
     
 !
547549                                 break;
 548550 
 549551                         case 'd':
<>550 -                                dflag++;
 551 -                                strlcpy(alist, argv[i], sizeof (alist));
  552+#ifdef os_darwin
  553+                                if (strcmp(argv[i], "-dynamiclib") == 0) {
  554+                                        shared = 1;
  555+                                } else
  556+#endif
  557+                                if (strcmp(argv[i], "-d") == 0) {
  558+                                        dflag++;
  559+                                        strlcpy(alist, argv[i], sizeof (alist));
  560+                                }
552561                                 break;
 553562                         case 'v':
 554563                                 printf("%s\n", VERSSTR);
 555564                                 vflag++;
 556565                                 break;
 557566 
 558567                         case 's':
<>559 -                                if (strcmp(argv[i], "-static") == 0)
 560 -                                        Bstatic = 1;
 561 -                                else if (strcmp(argv[i], "-shared") == 0) {
  568+#ifndef os_darwin
  569+                                if (strcmp(argv[i], "-shared") == 0) {
562570                                         shared = 1;
 563571 #ifndef os_win32
 564572                                         nostdlib = 1;
 565573 #endif
<> 574+                                } else
  575+#endif
  576+                                if (strcmp(argv[i], "-static") == 0) {
  577+                                        Bstatic = 1;
566578                                 } else if (strncmp(argv[i], "-std", 4) == 0) {
 567579                                         /* ignore gcc -std= */;
 568580                                 } else
     
 !
875887                 av[j++] = "-X";
 876888 #endif
 877889                 if (shared) {
<> 890+#ifdef os_darwin
  891+                        av[j++] = "-dylib";
  892+#else
878893                         av[j++] = "-shared";
<> 894+#endif
<_879895 #ifdef os_win32
 880896                         av[j++] = "-Bdynamic";
 881897 #endif
FishEye: Open Source License registered to PCC.
Your maintenance has expired. You can renew your license at http://www.atlassian.com/fisheye/renew
Atlassian FishEye, CVS analysis. (Version:1.6.3 Build:build-336 2008-11-04) - Administration - Page generated 2014-07-10 08:15 +0200