Quick Search:

Mode

Context

Displaying the whole file. None | Less | More | Full

Other Diffs

Ignore

Blank Lines Whitespace: Expand:

Diff

1.17
 
1.18
 
MAIN:plunky:20121026110439
 
ccconfig.h
_>11 /*      $Id$    */
 22 
 33 /*
 44  * Copyright (c) 2004 Anders Magnusson (ragge@ludd.luth.se).
 55  * All rights reserved.
 66  *
 77  * Redistribution and use in source and binary forms, with or without
 88  * modification, are permitted provided that the following conditions
 99  * are met:
 1010  * 1. Redistributions of source code must retain the above copyright
 1111  *    notice, this list of conditions and the following disclaimer.
 1212  * 2. Redistributions in binary form must reproduce the above copyright
 1313  *    notice, this list of conditions and the following disclaimer in the
 1414  *    documentation and/or other materials provided with the distribution.
 1515  *
 1616  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
 1717  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
 1818  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
 1919  * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
 2020  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
 2121  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
 2222  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
 2323  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
 2424  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
 2525  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 2626  */
 2727 
 2828 /*
 2929  * Various settings that controls how the C compiler works.
 3030  */
 3131 
 3232 /* common cpp predefines */
 3333 #define CPPADD          { "-D__Darwin__", "-D__APPLE__", NULL }
 3434 #define CRT0            "crt1.o"
 3535 #define GCRT0           "gcrt1.o"
 3636 #define CRTBEGIN_T      0
 3737 #define CRTEND_T        0
 3838 #define CRTBEGIN        0
 3939 #define CRTEND          0
 4040 #define CRTBEGIN_S      "dylib1.o"
 4141 #define CRTEND_S        0
 4242 #define CRTI            0
 4343 #define CRTN            0
 4444 #define DEFLIBS         { "-lSystem", "-lpcc", NULL }
 4545 #define DEFPROFLIBS     { "-lSystem_profile", "-lpcc", NULL }
 4646 #define STARTLABEL "start"
 4747 
 4848 #ifdef LANG_F77
 4949 #define F77LIBLIST { "-L" PCCLIBDIR, "-lF77", "-lI77", "-lm", "-lc", NULL };
 5050 #endif
 5151 
 5252 /*
 5353 ld -arch ppc -weak_reference_mismatches non-weak -o a.out -lcrt1.o -lcrt2.o -L/usr/lib/gcc/powerpc-apple-darwin8/4.0.1 hello_ppc.o -lgcc -lSystemStubs -lSystem
 5454 */
 5555 
 5656 #if defined(mach_i386)
 5757 #define CPPMDADD { "-D__i386__", "-D__LITTLE_ENDIAN__", NULL }
 5858 #elif defined(mach_powerpc)
 5959 #define CPPMDADD { "-D__ppc__", "-D__BIG_ENDIAN__", NULL }
 6060 #elif defined(mach_amd64)
 6161 #define CPPMDADD { "-D__x86_64__", "-D__LITTLE_ENDIAN__", NULL }
 6262 #else
 6363 #error defines for arch missing
 6464 #endif
 6565 
 6666 
 6767 /*
 6868  * Deal with some darwin-specific args.
 6969  */
<>70 -#define EARLY_ARG_CHECK {                                               \
  70+#define PCC_EARLY_ARG_CHECK     {                                               \
<_7171         if (match(argp, "-install_name")) {                             \
 7272                 strlist_append(&middle_linker_flags, argp);             \
 7373                 strlist_append(&middle_linker_flags, nxtopt(0));        \
 7474                 continue;                                               \
 7575         } else if (match(argp, "-compatibility_version") ||             \
 7676             match(argp, "-current_version")) {                          \
 7777                 strlist_append(&middle_linker_flags, argp);             \
 7878                 strlist_append(&middle_linker_flags, nxtopt(0));        \
 7979                 continue;                                               \
 8080         } else if (strcmp(argp, "-dynamiclib") == 0) {                  \
 8181                 shared = 1;                                             \
 8282                 continue;                                               \
 8383         } else if (strcmp(argp, "-shared") == 0) {                      \
 8484                 oerror(argp);                                           \
 8585                 continue;                                               \
 8686         }                                                               \
 8787 }
 8888 
 8989 
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-08-29 07:18 +0200