2
0

50-haiku.conf 1.2 KB

1234567891011121314151617181920212223242526272829303132
  1. my %targets = (
  2. "haiku-common" => {
  3. template => 1,
  4. CC => "cc",
  5. CFLAGS => add_before(picker(default => "-Wall",
  6. debug => "-g -O0",
  7. release => "-O2")),
  8. cflags => add_before("-DL_ENDIAN -include \$(SRCDIR)/os-dep/haiku.h",
  9. threads("-D_REENTRANT")),
  10. sys_id => "HAIKU",
  11. ex_libs => "-lnetwork",
  12. perlasm_scheme => "elf",
  13. thread_scheme => "pthreads",
  14. dso_scheme => "dlfcn",
  15. shared_target => "gnu-shared",
  16. shared_cflag => "-fPIC",
  17. shared_ldflag => "-shared",
  18. perl_platform => 'Unix',
  19. },
  20. "haiku-x86" => {
  21. inherit_from => [ "haiku-common" ],
  22. CFLAGS => add(picker(release => "-fomit-frame-pointer")),
  23. bn_ops => "BN_LLONG",
  24. asm_arch => 'x86',
  25. perlasm_scheme => 'elf',
  26. },
  27. "haiku-x86_64" => {
  28. inherit_from => [ "haiku-common" ],
  29. cflags => add("-m64"),
  30. bn_ops => "SIXTY_FOUR_BIT_LONG",
  31. },
  32. );