install-libgcc-no-gomp.sh 893 B

1234567891011121314151617181920212223242526
  1. set -e -x
  2. CHOST=$(${SRC_DIR}/build/gcc-final/gcc/xgcc -dumpmachine)
  3. # we have to remove existing links/files so that the libgcc install works
  4. rm -rf ${PREFIX}/lib/*
  5. rm -rf ${PREFIX}/share/*
  6. rm -f ${PREFIX}/${CHOST}/sysroot/lib64/libgomp*
  7. # now run install of libgcc
  8. # this reinstalls the wrong symlinks for openmp
  9. source ${RECIPE_DIR}/install_scripts/install-libgcc.sh
  10. # remove and relink things for openmp
  11. rm -f ${PREFIX}/lib/libgomp.so
  12. rm -f ${PREFIX}/${CHOST}/sysroot/lib64/libgomp.so
  13. rm -f ${PREFIX}/lib/libgomp.so.${libgomp_ver:0:1}
  14. rm -f ${PREFIX}/${CHOST}/sysroot/lib64/libgomp.so.${libgomp_ver:0:1}
  15. rm -f ${PREFIX}/${CHOST}/sysroot/lib64/libgomp.so.${libgomp_ver}
  16. # (re)make the right links
  17. # note that this code is remaking more links than the ones we want in this
  18. # package but that is ok
  19. pushd ${PREFIX}/lib
  20. ln -s libgomp.so.${libgomp_ver} libgomp.so.${libgomp_ver:0:1}
  21. popd