package compiler and linker metadata toolkit

sysroot.sh 583B

1234567891011121314151617181920212223242526272829
  1. #!/usr/bin/env atf-sh
  2. . $(atf_get_srcdir)/test_env.sh
  3. tests_init \
  4. cflags \
  5. variable
  6. cflags_body()
  7. {
  8. export PKG_CONFIG_PATH="${selfdir}/lib1"
  9. export PKG_CONFIG_SYSROOT_DIR="${SYSROOT_DIR}"
  10. atf_check \
  11. -o inline:"-fPIC -I${SYSROOT_DIR}/test/include/foo \n" \
  12. pkgconf --cflags baz
  13. }
  14. variable_body()
  15. {
  16. export PKG_CONFIG_PATH="${selfdir}/lib1"
  17. export PKG_CONFIG_SYSROOT_DIR="${SYSROOT_DIR}"
  18. atf_check \
  19. -o inline:"${SYSROOT_DIR}/test\n" \
  20. pkgconf --variable=prefix foo
  21. atf_check \
  22. -o inline:"${SYSROOT_DIR}/test/include\n" \
  23. pkgconf --variable=includedir foo
  24. }