mirror of https://github.com/postgres/postgres
This basically takes some build system code that was previously labeled "Solaris" and ties it to the compiler rather than the operating system. Author: Julius Stroffek <Julius.Stroffek@Sun.COM>REL8_5_ALPHA1_BRANCH
parent
3276599804
commit
79d306c84a
@ -1,6 +1,15 @@ |
||||
!======================================================================= |
||||
! solaris_sparc.s -- compare and swap for solaris_sparc |
||||
!======================================================================= |
||||
!------------------------------------------------------------------------- |
||||
! |
||||
! sunstudio_sparc.s |
||||
! compare and swap for Sun Studio on Sparc |
||||
! |
||||
! Portions Copyright (c) 1996-2008, PostgreSQL Global Development Group |
||||
! Portions Copyright (c) 1994, Regents of the University of California |
||||
! |
||||
! IDENTIFICATION |
||||
! $PostgreSQL: pgsql/src/backend/port/tas/sunstudio_sparc.s,v 1.1 2008/10/29 16:06:47 petere Exp $ |
||||
! |
||||
!------------------------------------------------------------------------- |
||||
|
||||
! Fortunately the Sun compiler can process cpp conditionals with -P |
||||
|
@ -1,6 +1,15 @@ |
||||
/======================================================================= |
||||
/ solaris_i386.s -- compare and swap for solaris_i386 |
||||
/======================================================================= |
||||
/------------------------------------------------------------------------- |
||||
/ |
||||
/ sunstudio_x86.s |
||||
/ compare and swap for Sun Studio on x86 |
||||
/ |
||||
/ Portions Copyright (c) 1996-2008, PostgreSQL Global Development Group |
||||
/ Portions Copyright (c) 1994, Regents of the University of California |
||||
/ |
||||
/ IDENTIFICATION |
||||
/ $PostgreSQL: pgsql/src/backend/port/tas/sunstudio_x86.s,v 1.1 2008/10/29 16:06:47 petere Exp $ |
||||
/ |
||||
/------------------------------------------------------------------------- |
||||
|
||||
/ Fortunately the Sun compiler can process cpp conditionals with -P |
||||
|
@ -1,7 +1,30 @@ |
||||
# $PostgreSQL: pgsql/src/template/linux,v 1.30 2007/09/21 02:33:46 tgl Exp $ |
||||
# $PostgreSQL: pgsql/src/template/linux,v 1.31 2008/10/29 16:06:47 petere Exp $ |
||||
|
||||
# Force _GNU_SOURCE on; plperl is broken with Perl 5.8.0 otherwise |
||||
CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE" |
||||
|
||||
# If --enable-profiling is specified, we need -DLINUX_PROFILE |
||||
PLATFORM_PROFILE_FLAGS="-DLINUX_PROFILE" |
||||
|
||||
if test "$SUN_STUDIO_CC" = "yes" ; then |
||||
CC="$CC -Xa" # relaxed ISO C mode |
||||
CFLAGS="-v" # -v is like gcc -Wall |
||||
if test "$enable_debug" != yes; then |
||||
CFLAGS="$CFLAGS -O" # any optimization breaks debug |
||||
fi |
||||
|
||||
# Pick the right test-and-set (TAS) code for the Sun compiler. |
||||
# We would like to use in-line assembler, but the compiler |
||||
# requires *.il files to be on every compile line, making |
||||
# the build system too fragile. |
||||
case $host_cpu in |
||||
sparc) |
||||
need_tas=yes |
||||
tas_file=sunstudio_sparc.s |
||||
;; |
||||
i?86|x86_64) |
||||
need_tas=yes |
||||
tas_file=sunstudio_x86.s |
||||
;; |
||||
esac |
||||
fi |
||||
|
Loading…
Reference in new issue