Show
Ignore:
Timestamp:
14.05.2013 22:53:38 (6 years ago)
Author:
davidb
Message:

64-bit check, setting -fPIC flag if it is added.

Files:
1 modified

Legend:

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

    r27255 r27337  
    66 
    77if [ -z $GEXT_AFREPO ] ; then 
    8   source gs3-setup.sh 
     8  source ./gs3-setup.sh 
    99fi 
    1010 
     
    1919    export LDFLAGS="-L$GEXT_AFREPO_INSTALLED/lib $LDFLAGS" 
    2020    export PKG_CONFIG_PATH="$GEXT_AFREPO_INSTALLED/lib/pkgconfig:$PKG_CONFIG_PATH" 
     21 
     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 
    2130     
    2231    echo "+Your environment is now setup to compile afrepo"