Show
Ignore:
Timestamp:
14.05.2013 23:08:34 (6 years ago)
Author:
davidb
Message:

CFLAG=-fPIC if 64-bit arch

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • gs2-extensions/echoprint/trunk/src/gs3-devel.sh

    r27267 r27344  
    66 
    77if [ -z $GEXT_ECHOPRINT ] ; then 
    8   source gs3-setup.sh 
     8  source ./gs3-setup.sh 
    99fi 
    1010 
    11 if [ -z $GEXTECHOPRINT_DEVEL ] ; then 
     11if [ -z $GEXT_ECHOPRINT_DEVEL ] ; then 
    1212    # Set environment variable so we can tell devel.bash has been sourced 
    13     export GEXTECHOPRINT_DEVEL=$GEXT_ECHOPRINT 
     13    export GEXT_ECHOPRINT_DEVEL=$GEXT_ECHOPRINT 
    1414     
    1515    export PATH="$GEXTECHOPRINT_INSTALLED/bin:$PATH" 
     
    2020    export PKG_CONFIG_PATH="$GEXTECHOPRINT_INSTALLED/lib/pkgconfig:$PKG_CONFIG_PATH" 
    2121     
     22    is_64bit=`uname -m | grep _64` 
     23    if [ "x$is_64bit" != "x" ] ; then  
     24    already_set=`echo $CFLAGS | grep fPIC` 
     25    if [ "x$already_set" = "x" ] ; then 
     26        # not present => add in 
     27        export CFLAGS="-fPIC" 
     28    fi 
     29    fi 
     30 
     31 
    2232    echo "+Your environment is now setup to compile with the Echoprint Support Library" 
    2333