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="-isystem ${cell_root}/usr/include"
36 # check for 4.3 versions of cross-compilers and use them if we've got them
37 if which ppu32-gcc43 >/dev/null 2>&1; then
43 if which ppu32-g++43 >/dev/null 2>&1; then
49 $scriptdir/configure \
54 RANLIB=${arch}-ranlib \
57 CPPFLAGS="$compiler_includes" \
58 LDFLAGS="-L${cell_root}/lib -L${cell_root}/usr/lib" \
59 PYTHON_CPPFLAGS=-I${cell_root}/usr/include/python${python_version} \
60 PKG_CONFIG_PATH=${cell_root}/usr/lib/pkgconfig:${cell_root}/usr/local/lib/pkgconfig \
61 --host=powerpc64-unknown-linux-gnu \
62 --with-pythondir=$prefix/lib/python${python_version}/site-packages \
63 --disable-gr-video-sdl \
64 --disable-gr-audio-portaudio \
65 --disable-gr-audio-jack \
66 --disable-usrp2-firmware \
70 # Hack the libtool script so that it doesn't code an --rpath flag into anything
72 #sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
73 #sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool