Show
Ignore:
Timestamp:
12/18/11 22:27:06 (6 years ago)
Author:
depesz
Message:

version working on fnx servers

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/tools/pgbrew/pgbrew

    r306 r309  
    11#!/usr/bin/env bash 
    2  
    32# function definitions # 
    43 
     
    1110    if [[ $( uname -s ) == "SunOS" ]] 
    1211    then 
    13         special_configure_options=( '--enable-dtrace' 'DTRACEFLAGS=-64' 'CC=cc' 'CFLAGS=-xO3 -m64' 'LDFLAGS= -m64 -L/opt/omni/lib/amd64 -R/opt/omni/lib/amd64' 'CPPFLAGS=-I/opt/omni/include/libxml2 -I/opt/omni/include ' ) 
    1412        export CC="cc -Xa" 
    15         export CPPFLAGS="-I/opt/omni/include/libxml2 -I/opt/omni/include -I/opt/omni/include/libxml2
     13        export CPPFLAGS="-I/opt/omni/include/libxml2 -I/opt/omni/include -I/opt/omni/include/libxml2 -I/usr/sfw/include
    1614        export CFLAGS="-xO3 -m64 -g" 
    1715        export CFLAGS_SL="-KPIC" 
    18         export LDFLAGS="-m64 -L/opt/omni/lib/amd64 -R/opt/omni/lib/amd64 -L/opt/omni/lib/amd64 -Wl,-R'/opt/pgsql911/lib'" 
     16        export LDFLAGS="-m64 -L/opt/omni/lib/amd64 -R/opt/omni/lib/amd64 -L/usr/sfw/lib/amd64 -R/usr/sfw/lib/amd64 -Wl,-R'/opt/pgsql911/lib'" 
    1917        export LIBS="-lxml2 -lssl -lcrypto -lz -lreadline -ltermcap -lnsl -lrt -lsocket -lm" 
     18        special_configure_options=( '--enable-dtrace' 'DTRACEFLAGS=-64' 'CC=cc' 'CFLAGS=-xO3 -m64' "LDFLAGS=$LDFLAGS" "CPPFLAGS=$CPPFLAGS" ) 
    2019        export PATH="/sbin:/usr/sbin:/usr/local/sbin:/usr/gnu/bin:/opt/omni/bin:/opt/OMNIperl/bin:/usr/openwin/bin:/usr/perl5/5.8.4/bin:/usr/X11/bin:/usr/dt/bin:/usr/sfw/bin:/usr/ccs/bin:/usr/xpg4/bin:/usr/xpg6/bin:/usr/proc/bin:/usr/SUNWale/bin:/usr/sadm/sysadm/bin:/usr/sadm/bin:/usr/sadm/install/bin:/usr/local/bin:/usr/bin:/bin" 
    2120    fi 
     
    5150    pg_versions=( $( 
    5251        http_get http://www.postgresql.org/ftp/source/ | \ 
    53         perl -lne 'print for /<a href="(v[0-9]+\.[0-9]+\.[0-9]+)">\1</g' 
     52        perl -pe 's/</\n</g' | \ 
     53        perl -ne 'print if /^<a href="(v[0-9]+\.[0-9]+\.[0-9]+)">\1$/' | \ 
     54        cut -d\> -f2 
    5455        ) ) 
    5556} 
     
    144145        --with-pgport=$( get_port ) \ 
    145146        --enable-debug \ 
    146         --with-perl \ 
    147147        --enable-integer-datetimes \ 
    148148        --enable-thread-safety \