4 # Before trying to use this script, please follow the instructions at
5 # http://gnuradio.org/trac/wiki/CrossCompilingForCell
15 prefix=${arg#--prefix=}
18 $scriptdir/configure --help
26 echo "usage: $0 --prefix=PREFIX [configure options...]" 1>&2
32 cell_root=/mnt/cell-root
34 # compiler_includes="-I${cell_root}/usr/include -I${cell_root}/usr/local/include -I${cell_root}/usr/lib/gcc/ppu/4.1.1/include -I${cell_root}/usr/lib/gcc/ppu/4.1.1/include/c++"
35 compiler_includes="-I${cell_root}/usr/include"
37 $scriptdir/configure \
42 RANLIB=${arch}-ranlib \
45 CPPFLAGS="$compiler_includes" \
46 LDFLAGS="-L${cell_root}/lib -L${cell_root}/usr/lib" \
47 PYTHON_CPPFLAGS=-I${cell_root}/usr/include/python${python_version} \
48 PKG_CONFIG_PATH=${cell_root}/usr/lib/pkgconfig:${cell_root}/usr/local/lib/pkgconfig \
49 --host=powerpc64-unknown-linux-gnu \
50 --with-pythondir=$prefix/lib/python${python_version}/site-packages \
51 --disable-gr-video-sdl \
52 --disable-gr-audio-portaudio \
56 # Hack the libtool script so that it doesn't code an --rpath flag into anything
58 #sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
59 #sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool