Browse Source

python: fixed linking of modules when cross-compiling

When linking modules libpython2.7.so is not installed in the sandbox but
available in the top-level source directory.
stable/0.6
Christian Wiese 11 years ago
parent
commit
22f98bfa33
  1. 3
      python/python/python.conf

3
python/python/python.conf

@ -69,6 +69,9 @@ if atstage cross; then
# point to the sandbox to avoid host libs to leak in # point to the sandbox to avoid host libs to leak in
var_insert CFLAGS ' ' "-I$root/usr/include" var_insert CFLAGS ' ' "-I$root/usr/include"
var_insert LDFLAGS ' ' "-L$root/usr/lib -L$root/lib" var_insert LDFLAGS ' ' "-L$root/usr/lib -L$root/lib"
# when linking modules libpython2.7.so is not installed in
# the sandbox but available in the top-level source directory
var_insert LDFLAGS ' ' "-L$builddir/Python-$ver"
var_append configprefix ' ' "CFLAGS=\"$CFLAGS\"" var_append configprefix ' ' "CFLAGS=\"$CFLAGS\""
var_append configprefix ' ' "LDFLAGS=\"$LDFLAGS\"" var_append configprefix ' ' "LDFLAGS=\"$LDFLAGS\""
fi fi

Loading…
Cancel
Save