HP-UXB.11.mk 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. #
  2. # This Source Code Form is subject to the terms of the Mozilla Public
  3. # License, v. 2.0. If a copy of the MPL was not distributed with this
  4. # file, You can obtain one at http://mozilla.org/MPL/2.0/.
  5. include $(CORE_DEPTH)/coreconf/HP-UX.mk
  6. ifndef NS_USE_GCC
  7. CCC = /opt/aCC/bin/aCC -ext
  8. ifeq ($(USE_64), 1)
  9. ifeq ($(OS_TEST), ia64)
  10. ARCHFLAG = -Aa +e +p +DD64
  11. else
  12. # Our HP-UX build machine has a strange problem. If
  13. # a 64-bit PA-RISC executable calls getcwd() in a
  14. # network-mounted directory, it fails with ENOENT.
  15. # We don't know why. Since nsinstall calls getcwd(),
  16. # this breaks our 64-bit HP-UX nightly builds. None
  17. # of our other HP-UX machines have this problem.
  18. #
  19. # We worked around this problem by building nsinstall
  20. # as a 32-bit PA-RISC executable for 64-bit PA-RISC
  21. # builds. -- wtc 2003-06-03
  22. ifdef INTERNAL_TOOLS
  23. ARCHFLAG = +DAportable +DS2.0
  24. else
  25. ARCHFLAG = -Aa +e +DA2.0W +DS2.0 +DChpux
  26. endif
  27. endif
  28. else
  29. ifeq ($(OS_TEST), ia64)
  30. ARCHFLAG = -Aa +e +p +DD32
  31. else
  32. ARCHFLAG = +DAportable +DS2.0
  33. endif
  34. endif
  35. else
  36. CCC = aCC
  37. endif
  38. #
  39. # To use the true pthread (kernel thread) library on HP-UX
  40. # 11.x, we should define _POSIX_C_SOURCE to be 199506L.
  41. # The _REENTRANT macro is deprecated.
  42. #
  43. OS_CFLAGS += $(ARCHFLAG) -DHPUX11 -D_POSIX_C_SOURCE=199506L
  44. OS_LIBS += -lpthread -lm -lrt
  45. HPUX11 = 1