source: gs2-extensions/echoprint/trunk/src/gs3-devel.sh

Last change on this file was 27344, checked in by davidb, 11 years ago

CFLAG=-fPIC if 64-bit arch

  • Property svn:executable set to *
File size: 1.1 KB
RevLine 
[27246]1#!/bin/bash
2
3if [ -d cascade-make ] ; then
[27267]4 source cascade-make/lib/cascade-lib.bash GEXT_ECHOPRINT . $*
[27246]5fi
6
[27267]7if [ -z $GEXT_ECHOPRINT ] ; then
[27344]8 source ./gs3-setup.sh
[27246]9fi
10
[27344]11if [ -z $GEXT_ECHOPRINT_DEVEL ] ; then
[27246]12 # Set environment variable so we can tell devel.bash has been sourced
[27344]13 export GEXT_ECHOPRINT_DEVEL=$GEXT_ECHOPRINT
[27246]14
[27267]15 export PATH="$GEXTECHOPRINT_INSTALLED/bin:$PATH"
16 export CFLAGS="-I$GEXTECHOPRINT_INSTALLED/include $CFLAGS"
17 export CPPFLAGS="-I$GEXTECHOPRINT_INSTALLED/include $CPPFLAGS"
18 export CXXFLAGS="-I$GEXTECHOPRINT_INSTALLED/include $CXXFLAGS"
19 export LDFLAGS="-L$GEXTECHOPRINT_INSTALLED/lib $LDFLAGS"
20 export PKG_CONFIG_PATH="$GEXTECHOPRINT_INSTALLED/lib/pkgconfig:$PKG_CONFIG_PATH"
[27246]21
[27344]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
[27267]32 echo "+Your environment is now setup to compile with the Echoprint Support Library"
[27246]33
34else
[27267]35 echo "+Your environment is already setup to compile with the Echoprint Support Library"
[27246]36fi
Note: See TracBrowser for help on using the repository browser.