Ignore:
Timestamp:
05/14/13 22:53:38 (8 years ago)
Author:
davidb
Message:

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

File:
1 edited

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"
Note: See TracChangeset for help on using the changeset viewer.