Skip to content

Instantly share code, notes, and snippets.

@dhilst
Last active June 24, 2016 18:52
Show Gist options
  • Select an option

  • Save dhilst/2fa8dd54712d0b92a3db52e472d9fc09 to your computer and use it in GitHub Desktop.

Select an option

Save dhilst/2fa8dd54712d0b92a3db52e472d9fc09 to your computer and use it in GitHub Desktop.
. $1
export BUILD_SYS=$(echo $CONFIGURE_FLAGS | tr -s ' ' '\n' | grep host | cut -f2 -d=)
export HOST_SYS=$(echo $CONFIGURE_FLAGS | tr -s ' ' '\n' | grep build | cut -f2 -d=)
export STAGING_INCDIR=${OECORE_TARGET_SYSROOT}/usr/include
export STAGING_LIBDIR=${OECORE_TARGET_SYSROOT}/usr/lib
export PATH=${OECORE_NATIVE_SYSROOT}/usr/bin/python-native:${PATH}
# remove stripping, I face used symbols being stripped
# this has to do with linker option order
export LDFLAGS=${LDFLAGS/-Wl,--as-needed/}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment