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
Line 
1#!/bin/bash
2
3if [ -d cascade-make ] ; then
4 source cascade-make/lib/cascade-lib.bash GEXT_ECHOPRINT . $*
5fi
6
7if [ -z $GEXT_ECHOPRINT ] ; then
8 source ./gs3-setup.sh
9fi
10
11if [ -z $GEXT_ECHOPRINT_DEVEL ] ; then
12 # Set environment variable so we can tell devel.bash has been sourced
13 export GEXT_ECHOPRINT_DEVEL=$GEXT_ECHOPRINT
14
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"
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
30
31
32 echo "+Your environment is now setup to compile with the Echoprint Support Library"
33
34else
35 echo "+Your environment is already setup to compile with the Echoprint Support Library"
36fi
Note: See TracBrowser for help on using the repository browser.