/usr/share/cernlib/config/linux.cf is in cernlib-base-dev 20061220+dfsg3-4.1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 | /* $Id: linux.cf,v 1.20 2006/09/15 09:34:48 mclareni Exp $
*
* $Log: linux.cf,v $
* Revision 1.20 2006/09/15 09:34:48 mclareni
* Submitted mods for gcc4/gfortran and MacOSX, corrected to work also on slc4 with gcc3.4 and 4.1
*
* Revision 1.19 2004/10/05 15:56:45 mclareni
* Update the Kernel levels and remove Make warnings about HasGcc.
*
* Revision 1.18 2003/06/26 13:25:35 mclareni
* Clean up the ifc options for ifc 7.0 on Redhat 73, adding Motif by default.
* Add the shift option as a comment so the default is still noshift.
*
* Revision 1.17 2002/07/08 10:27:28 mclareni
* Add #endif to complete new else condition.
*
* Revision 1.16 2002/07/05 14:20:37 mclareni
* Add compiler options for Intel IA32 ifc/icc 60 under HasIntelifc
*
* Revision 1.15 2002/04/24 16:37:41 mclareni
* Make OpenMotif includes in /usr/X11R6/include the default
*
* Revision 1.14 2001/09/14 10:05:01 mclareni
* Remove most of the old gcc compiler options. The problems on 2.4 kernels seem
* to be caused by -D_GNU_SOURCE.
*
* Revision 1.12 2000/08/11 14:43:40 mclareni
* New set of options for PGI pgf77, mostly de-optimised
*
* Revision 1.11 2000/01/14 15:44:36 mclareni
* Add Lesstif includes from /usr/local/include
*
* Revision 1.10 1999/05/25 08:58:14 cernsoft
* Remove code to build with/without Motif depending on environment variable
*
* Revision 1.9 1998/08/25 12:15:10 mclareni
* Add QMGLIBC flag
*
* Revision 1.8 1998/02/10 10:48:59 mclareni
* To compile herwig59 and mathlib tests need -fugly-complex option to allow REAL(DOUBLE COMPLEX arg)
*
* Revision 1.7 1998/01/15 14:44:01 mclareni
* Prevent adding 2 underscores, mainly for Comis
*
* Revision 1.6 1997/12/15 16:20:44 mclareni
* Changes for the Portland Group f77 compiler, inside ifdef HasPgf77
*
* Revision 1.5 1997/07/04 17:00:28 mclareni
* The gcc default for backslash is required for Cernlib
*
* Revision 1.4 1997/07/04 16:31:44 mclareni
* There is an official shift version for Linux
*
* Revision 1.3 1996/12/16 15:12:05 cernlib
* By default inhibit Motif on Linux; can be changed via environment
*
* Revision 1.2 1996/11/13 13:23:15 cernlib
* Add cernlib options for fortran etc..
*
* Revision 1.1.1.1 1995/12/20 15:26:45 cernlib
* X11R6 config files unmodified
*
*
*/
XCOMM platform: $XConsortium: linux.cf,v 1.11 95/01/23 18:32:03 kaleb Exp $
#define OSName Linux
#define OSVendor /**/
#define OSMajorVersion 2
#define OSMinorVersion 4
#define OSTeenyVersion 21
#undef unix /* GF. this is not needed anywhere */
#ifndef UseElfFormat
#define UseElfFormat YES
#endif
#define HasGcc2ForCplusplus YES
#define GccUsesGas YES
#define UseGas YES
#define GnuCpp YES
#define HasShadowPasswd YES
#ifndef HasLibCrypt
# define HasLibCrypt YES
#endif
#define HasPutenv YES
#define HasShm YES
#define HasSockets YES
#define AvoidNullMakeCommand YES
#define StripInstalledPrograms YES
#define CompressAllFonts YES
#define Malloc0ReturnsNull YES
#define NeedConstPrototypes YES
#define NeedFunctionPrototypes YES
#define NeedNestedPrototypes YES
#define NeedVarargsPrototypes YES
#define NeedWidePrototypes NO
/* The following modified to match (more or less) linux.cf in XFree86 4.3.0.
-- Kevin McCarty
*/
#if UseElfFormat
#ifdef MipsArchitecture
#ifndef AsCmd
#define AsCmd gcc -c -x assembler-with-cpp
#endif
#endif /* MipsArchitecture */
#ifndef CcCmd
#define CcCmd gcc -g
#endif
#ifndef AsCmd
#define AsCmd as
#endif
#ifndef LdCmd
#define LdCmd ld
#endif
#define AsmDefines -D__ELF__
#define CplusplusCmd c++ -g
#else /* no UseElfFormat */
#define CcCmd gcc -g
#define AsCmd as
#define LdCmd ld
#define AsmDefines -DUSE_GAS -U__ELF__
#define CplusplusCmd g++ -g
#endif /* UseElfFormat */
#ifndef CppCmd
#define CppCmd /lib/cpp
#endif
#define YaccCmd bison -y
#define LexCmd flex -l
#define LexLib -lfl
#define PreProcessCmd CcCmd -E
#define PostIncDir `CcCmd --print-libgcc-file-name | sed 's/libgcc.a/include/'`
#define LdCombineFlags -r
#define LinuxSourceDefines -D_POSIX_SOURCE -D_BSD_SOURCE -D_GNU_SOURCE \
-DX_LOCALE
#define XawI18nDefines -DUSE_XWCHAR_STRING -DUSE_XMBTOWC
#define HasWChar32 YES
#define StandardCppDefines -traditional StandardDefines
#define ServerOSDefines XFree86ServerOSDefines -DDDXTIME -DPART_NET
#define ExtensionOSDefines -DXTESTEXT1
/* #define ServerExtraDefines -DGCCUSESGAS XFree86ServerDefines */
#define ConnectionFlags -DUNIXCONN -DTCPCONN
#define InstUidFlags -s -m 4755
/* Arch-specific flags here copied from linux.cf for XFree86 4.3.0,
Debian patched (version 4.3.0.dfsg.1-4), plus additional
OptimizationLevel macro.
Additional CERNLIB-specific per-architecture flags also added.
--Kevin McCarty */
/* Note: we are now using CERNLIB_PPC as an endianness test (which is about
all that the CERNLIB source uses it for); I introduced a new define
CERNLIB_POWERPC for the three occasions when we specifically want to
test for powerpc chips.
*/
#ifdef i386Architecture
# ifndef OptimizationLevel
# define OptimizationLevel -O3
# endif
# ifndef OptimizedCDebugFlags
# define OptimizedCDebugFlags OptimizationLevel -fno-strength-reduce
# endif
# define LinuxMachineDefines -D__i386__
# define ServerOSDefines XFree86ServerOSDefines -DDDXTIME -DPART_NET
# define ServerExtraDefines -DGCCUSESGAS XFree86ServerDefines
#endif /* i386Architecture */
#ifdef s390Architecture
# ifndef OptimizationLevel
# define OptimizationLevel -O3
# endif
# ifndef OptimizedCDebugFlags
# define OptimizedCDebugFlags OptimizationLevel
# endif
# define LinuxMachineDefines -D__s390__
# define ServerOSDefines XFree86ServerOSDefines -DDDXTIME -DPART_NET
# define ServerExtraDefines -DGCCUSESGAS XFree86ServerDefines
# define CernlibMachineDefines -DCERNLIB_PPC
# define CERNLIB_PPC
#endif /* s390Architecture */
#ifdef s390xArchitecture
/*#define DefaultCCOptions -fsigned-char */
#ifndef OptimizationLevel
#define OptimizationLevel -O3
#endif
#define OptimizedCDebugFlags OptimizationLevel
#define LinuxMachineDefines -D__s390x__
#define ServerOSDefines XFree86ServerOSDefines -DDDXTIME -DPART_NET
#define ServerExtraDefines -DGCCUSESGAS XFree86ServerDefines -D_XSERVER64
#define CernlibMachineDefines -DCERNLIB_PPC -DCERNLIB_QMLXIA64
#define CERNLIB_PPC
#define CERNLIB_QMLXIA64
#endif /* s390xArchitecture */
#ifdef AlphaArchitecture
# ifndef OptimizationLevel
# define OptimizationLevel -O3
# endif
# ifndef OptimizedCDebugFlags
# define OptimizedCDebugFlags OptimizationLevel
# endif
# define LinuxMachineDefines -D__alpha__
# define ServerOSDefines XFree86ServerOSDefines -DDDXTIME -DPART_NET
# define ServerExtraDefines -DGCCUSESGAS XFree86ServerDefines -D_XSERVER64 -DJENSEN_SUPPORT
# define CernlibMachineDefines -DCERNLIB_QMLXIA64
# define CERNLIB_QMLXIA64
# ifdef UseCompaqMathLibrary
# define MathLibrary -lcpml -lm
# endif
#endif /* AlphaArchitecture */
#ifdef Arm32Architecture
# define DefaultCCOptions -fsigned-char
# ifndef OptimizationLevel
# define OptimizationLevel -O2
# endif
# ifndef OptimizedCDebugFlags
# define OptimizedCDebugFlags OptimizationLevel
# endif
# define LinuxMachineDefines -D__arm__ -D__arm32__ -U__arm -Uarm
# define ServerOSDefines XFree86ServerOSDefines -DDDXTIME -DPART_NET
# define ServerExtraDefines -DGCCUSESGAS XFree86ServerDefines
# if defined(__ARMEB__) || defined(Arm32ebArchitecture)
/* test for big-endianness */
# define CernlibMachineDefines -DCERNLIB_PPC
# define CERNLIB_PPC
# endif
#endif /* Arm32Achitecture */
#ifdef ia64Architecture
# ifndef OptimizationLevel
# define OptimizationLevel -O2
# endif
# ifndef OptimizedCDebugFlags
# define OptimizedCDebugFlags OptimizationLevel
# endif
# define LinuxMachineDefines -D__ia64__
# define ServerOSDefines XFree86ServerOSDefines -DDDXTIME -DPART_NET
# define ServerExtraDefines -DGCCUSESGAS XFree86ServerDefines -D_XSERVER64
# define CernlibMachineDefines -DCERNLIB_QMLXIA64
# define CERNLIB_QMLXIA64
#endif /* ia64Architecture */
#ifdef Mc68020Architecture
# ifndef OptimizationLevel
# define OptimizationLevel -O3
# endif
# ifndef OptimizedCDebugFlags
# define OptimizedCDebugFlags OptimizationLevel
# endif
# define DefaultCCOptions -malign-int
# define DefaultFCOptions -malign-int -fno-automatic \
-fno-second-underscore
# define LinuxMachineDefines -D__mc68000__
# define ServerOSDefines XFree86ServerOSDefines -DDDXTIME -DPART_NET
# define ServerExtraDefines -DGCCUSESGAS XFree86ServerDefines
# define CernlibMachineDefines -DCERNLIB_PPC
# define CERNLIB_PPC
# define CERNLIB_M68K
/* # define PositionIndependentCplusplusFlags -fpic */
#endif /* Mc68020Architecture */
#if defined(PpcArchitecture) || defined(Ppc64Architecture)
# define DefaultCCOptions -fsigned-char
# ifndef OptimizationLevel
# define OptimizationLevel -O3
# endif
# ifndef OptimizedCDebugFlags
# define OptimizedCDebugFlags OptimizationLevel
# endif
# define LinuxMachineDefines -D__powerpc__
# define ServerOSDefines XFree86ServerOSDefines -DDDXTIME -DPART_NET
# ifdef Ppc64Architecture
# define ServerExtraDefines -DGCCUSESGAS XFree86ServerDefines -D_XSERVER64
# define CernlibMachineDefines -DCERNLIB_PPC -DCERNLIB_POWERPC \
-DCERNLIB_QMLXIA64
# define CERNLIB_QMLXIA64
# else
# define CernlibMachineDefines -DCERNLIB_PPC -DCERNLIB_POWERPC
# define ServerExtraDefines -DGCCUSESGAS XFree86ServerDefines
# endif
# define CERNLIB_PPC
# define CERNLIB_POWERPC
#endif /* PpcArchitecture || Ppc64Architecture */
#ifdef SparcArchitecture
# ifndef OptimizationLevel
# define OptimizationLevel -O3
# endif
# ifndef OptimizedCDebugFlags
# define OptimizedCDebugFlags OptimizationLevel
# endif
# define LinuxMachineDefines -D__sparc__
# define ServerOSDefines XFree86ServerOSDefines -DDDXTIME -DPART_NET
# define ServerExtraDefines -DGCCUSESGAS XFree86ServerDefines
# define AsVISOption -Av9a
# ifdef Sparc64Architecture
# define AsOutputArchSize 64
# define CernlibMachineDefines -DCERNLIB_PPC -DCERNLIB_QMLXIA64
# define CERNLIB_QMLXIA64
# else
# define AsOutputArchSize 32
# define CernlibMachineDefines -DCERNLIB_PPC
# endif
# define CERNLIB_PPC
#endif
#ifdef MipsArchitecture
# ifndef OptimizationLevel
# define OptimizationLevel -O2
# endif
# ifndef OptimizedCDebugFlags
# define OptimizedCDebugFlags OptimizationLevel
# endif
# define LinuxMachineDefines -D__mips__
# define ServerOSDefines XFree86ServerOSDefines -DDDXTIME -DPART_NET
# define ServerExtraDefines -DGCCUSESGAS XFree86ServerDefines
# if !defined(MipselArchitecture) /* then big-endian, i.e. mips */
# define CernlibMachineDefines -DCERNLIB_PPC
# define CERNLIB_PPC
# endif
#endif
#ifdef HPArchitecture
# ifndef OptimizationLevel
# define OptimizationLevel -O3
# endif
# define OptimizedCDebugFlags OptimizationLevel
# define LinuxMachineDefines -D__hppa__
# define ServerOSDefines XFree86ServerOSDefines -DDDXTIME -DPART_NET
# define ServerExtraDefines -DGCCUSESGAS XFree86ServerDefines
# define CernlibMachineDefines -DCERNLIB_PPC
# define CERNLIB_PPC
#endif
#ifdef SuperHArchitecture
# ifndef SuperHArchOptFlags
# ifdef SuperH4Architecture
# define SuperHArchOptFlags -m4
# elif defined(SuperH4NOFPUArchitecture)
# define SuperHArchOptFlags -m4-nofpu
# else
# define SuperHArchOptFlags -m3
# endif
# endif
# ifndef SuperHebArchitecture
# ifdef SuperHebArchitecture
# define SuperHEndianFlags -mb
# define CernlibMachineDefines -DCERNLIB_PPC
# define CERNLIB_PPC
# else
# define SuperHEndianFlags -ml
# endif
# endif
# ifndef OptimizationLevel
# define OptimizationLevel -O3
# endif
# ifndef OptimizedCDebugFlags
# define OptimizedCDebugFlags OptimizationLevel SuperHArchOptFlags SuperHEndianFlags
# endif
# define LinuxMachineDefines -D__sh__
# define ServerOSDefines XFree86ServerOSDefines -DDDXTIME -DPART_NET
# define ServerExtraDefines -DGCCUSESGAS XFree86ServerDefines
#endif
#ifdef AMD64Architecture
# ifndef OptimizationLevel
# define OptimizationLevel -O3
# endif
# ifndef OptimizedCDebugFlags
# define OptimizedCDebugFlags OptimizationLevel
# endif
# define LinuxMachineDefines -D__x86_64__
# define ServerOSDefines XFree86ServerOSDefines -DDDXTIME -DPART_NET
# define ServerExtraDefines -DGCCUSESGAS XFree86ServerDefines -D_XSERVER64
# define CernlibMachineDefines -DCERNLIB_QMLXIA64
# define CERNLIB_QMLXIA64
#endif /* AMD64Architecture */
#ifndef StandardDefines
# define StandardDefines -Dlinux LinuxMachineDefines LinuxSourceDefines
#endif
#ifndef CernlibMachineDefines
#define CernlibMachineDefines
#endif
#ifndef CernlibLocalDefines
#define CernlibLocalDefines
#endif
#define CernlibDefaultDefines -DCERNLIB_LINUX -DCERNLIB_UNIX -DCERNLIB_LNX \
-DCERNLIB_QMGLIBC
/* Some of these man page defaults are overriden in the above OS sections */
#ifndef ManSuffix
# define ManSuffix 1x
#endif
#ifndef ManDir
# define ManDir $(MANSOURCEPATH)1
#endif
#ifndef LibManSuffix
# define LibManSuffix 3x
#endif
#ifndef LibmanDir
# define LibmanDir $(MANSOURCEPATH)3
#endif
#ifndef FileManSuffix
# define FileManSuffix 5x
#endif
#ifndef FileManDir
# define FileManDir $(MANSOURCEPATH)5
#endif
#include <lnxLib.rules>
/* #include <xfree86.cf> */
#ifdef HasPgf77
#define f2cFortran YES
#define FortranCmd pgf77
/*
#define FortranDoesCpp NO
#define FortranCppCmd /lib/cpp -traditional -C
*/
#define XargsCmd xargs
#define FortranSaveFlags /* */ /* Everything static !? */
#define OptimisedFortranFlags -g -pc 64 -tp p6
#define DefaultFCOptions -Msave -fpic -Kieee
#define CernlibSystem CernlibDefaultDefines -DCERNLIB_QFPGF77
#else
# ifdef HasIntelifc
# undef CcCmd
# undef DefaultCCOptions
# undef OptimizedCDebugFlags
# undef StandardDefines
# undef NeedFunctionPrototypes
# undef NeedWidePrototypes
# define CcCmd icc
# define DefaultCCOptions
# define OptimizedCDebugFlags -O
# define FortranDoesCpp NO
# define FortranCppCmd /usr/bin/cpp -traditional -C
# define FortranCmd ifort
# define XargsCmd xargs
# define FortranSaveFlags -save
# define OptimisedFortranFlags -O -mp1 -fp_port
# define NoOpFortranDebugFlags -O0
# define DefaultFCOptions
# define CernlibSystem CernlibDefaultDefines -DCERNLIB_INTELIFC
# define CERNLIB_INTELIFC
#else
# ifdef HasIntelefc
# undef CcCmd
# undef DefaultCCOptions
# undef OptimizedCDebugFlags
# undef StandardDefines
# undef NeedFunctionPrototypes
# undef NeedWidePrototypes
# define CcCmd ecc
# define DefaultCCOptions -KPIC
# define OptimizedCDebugFlags -O
# define FortranDoesCpp NO
# define FortranCppCmd /lib/cpp -traditional -C
# define FortranCmd efc
# define XargsCmd xargs
# define FortranSaveFlags -save
# define OptimisedFortranFlags -O
# define DefaultFCOptions -KPIC
# define CernlibSystem CernlibDefaultDefines
# define CERNLIB_SHIFT NO
/*
* Create a Make Variable to allow building with/out Motif
*/
#undef MotifDependantMakeVar
#define MotifDependantMakeVar(variable,value) @@\
ifneq ($(strip $(HAVE_MOTIF)),) @@\
variable=value @@\
endif @@\
#else
# ifdef Hasgfortran
# undef StandardDefines
# undef NeedFunctionPrototypes
# undef NeedWidePrototypes
# ifndef DefaultCCOptions
# define DefaultCCOptions -D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security
# endif
# ifndef OptimizedCDebugFlags
# define OptimizedCDebugFlags OptimizationLevel DefaultCCOptions
# endif
# define FortranDoesCpp YES
# define f2cFortran YES
# define gFortran YES
# define FortranCmd gfortran -g
# define XargsCmd xargs
# define FortranSaveFlags -fno-automatic
# define OptimisedFortranFlags OptimizedCDebugFlags /* -funroll-loops */
/* Remove -fomit-frame-pointer since -O implies it and it inhibits debugging */
# ifndef DefaultFCOptions
# define DefaultFCOptions -D_FORTIFY_SOURCE=2 -fno-range-check -fno-automatic -fno-second-underscore -fstack-protector --param=ssp-buffer-size=4
# endif
# define NoOpFortranDebugFlags -O0
# define CernlibSystem CernlibDefaultDefines CernlibMachineDefines \
CernlibLocalDefines -DCERNLIB_GFORTRAN
#define CERNLIB_GFORTRAN
# else /* g77 */
/* Start CERNLIB changes A.Waananen 15. Apr. 1996 */
/* Adapted to CERN style GF. 20-Sep-96 */
/*
# undef DefaultCCOptions
# undef OptimizedCDebugFlags
# undef StandardDefines
# define OptimizedCDebugFlags -O1 -fomit-frame-pointer
*/
#ifndef DefaultCCOptions
# define DefaultCCOptions
#endif
#ifndef OptimizedCDebugFlags
# define OptimizedCDebugFlags OptimizationLevel DefaultCCOptions
#endif
#define f2cFortran YES
#define FortranCmd g77 -g
#define XargsCmd xargs
#define FortranSaveFlags /* */ /* Everything static !? */
#define OptimisedFortranFlags OptimizedCDebugFlags -funroll-loops
/* Remove -fomit-frame-pointer since -O implies it and it inhibits debugging */
#ifndef DefaultFCOptions
# define DefaultFCOptions -fno-automatic -fno-second-underscore \
-fugly-complex
#endif
#define CernlibSystem CernlibDefaultDefines CernlibMachineDefines \
CernlibLocalDefines
# endif
# endif
#endif
#endif
#define CERNLIB_LINUX
#define CERNLIB_UNIX
#define CERNLIB_LNX
#define CERNLIB_QMGLIBC
/* # define CERNLIB_SHIFT YES uncomment this to make the shift packlib */
#define X11Includes -I/usr/X11R6/include
/* #define MotifIncludes -I/usr/local/include Cern Rh6.1 Lesstif */
/*
* Create a Make Variable to allow building with/out Motif
*/
#define MotifDependantMakeVar(variable,value) variable=value
/* End CERNLIB changes */
|