You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

84 lines
2.3 KiB

  1. --- a/nss/lib/dbm/src/dirent.h
  2. +++ b/nss/lib/dbm/src/dirent.h
  3. @@ -30,7 +30,7 @@
  4. #define MAXNAMLEN FILENAME_MAX
  5. #else
  6. -#include <param.h>
  7. +#include <sys/param.h>
  8. #endif
  9. #endif
  10. --- a/nss/coreconf/rules.mk
  11. +++ b/nss/coreconf/rules.mk
  12. @@ -176,7 +176,7 @@ $(LIBRARY): $(OBJS) | $$(@D)/d
  13. ifeq (,$(filter-out _WIN%,$(NS_USE_GCC)_$(OS_TARGET)))
  14. $(AR) $(subst /,\\,$(OBJS))
  15. else
  16. - $(AR) $(OBJS)
  17. + $(AR) rcs $@ $(OBJS)
  18. endif
  19. $(RANLIB) $@
  20. --- a/nss/coreconf/arch.mk
  21. +++ b/nss/coreconf/arch.mk
  22. @@ -306,7 +306,7 @@ else
  23. OBJDIR_NAME_COMPILER = $(COMPILER_TAG)
  24. endif
  25. OBJDIR_NAME_BASE = $(OS_TARGET)$(OS_RELEASE)$(CPU_TAG)$(OBJDIR_NAME_COMPILER)$(LIBC_TAG)$(IMPL_STRATEGY)$(OBJDIR_TAG)
  26. -OBJDIR_NAME = $(OBJDIR_NAME_BASE).OBJ
  27. +OBJDIR_NAME = build_dir
  28. ifeq (,$(filter-out WIN%,$(OS_TARGET)))
  29. --- a/nss/coreconf/Linux.mk
  30. +++ b/nss/coreconf/Linux.mk
  31. @@ -113,11 +113,6 @@ LIBC_TAG = _glibc
  32. endif
  33. ifdef BUILD_OPT
  34. -ifeq (11,$(ALLOW_OPT_CODE_SIZE)$(OPT_CODE_SIZE))
  35. - OPTIMIZER = -Os
  36. -else
  37. - OPTIMIZER = -O2
  38. -endif
  39. ifdef MOZ_DEBUG_SYMBOLS
  40. ifdef MOZ_DEBUG_FLAGS
  41. OPTIMIZER += $(MOZ_DEBUG_FLAGS)
  42. @@ -149,7 +144,8 @@ ifdef USE_PTHREADS
  43. DEFINES += -D_REENTRANT
  44. endif
  45. -DSO_CFLAGS = -fPIC
  46. +ifndef USE_NATIVE
  47. +DSO_CFLAGS = $(fpic)
  48. DSO_LDOPTS = -shared $(ARCHFLAG) -Wl,--gc-sections
  49. # The linker on Red Hat Linux 7.2 and RHEL 2.1 (GNU ld version 2.11.90.0.8)
  50. # incorrectly reports undefined references in the libraries we link with, so
  51. @@ -159,6 +155,7 @@ DSO_LDOPTS = -shared $(ARCHFLAG) -Wl,--
  52. ZDEFS_FLAG = -Wl,-z,defs
  53. DSO_LDOPTS += $(if $(findstring 2.11.90.0.8,$(shell ld -v)),,$(ZDEFS_FLAG))
  54. LDFLAGS += $(ARCHFLAG) -z noexecstack
  55. +endif
  56. # On Maemo, we need to use the -rpath-link flag for even the standard system
  57. # library directories.
  58. @@ -200,7 +197,7 @@ RPATH = -Wl,-rpath,'$$ORIGIN:/opt/sun/pr
  59. endif
  60. endif
  61. -MKSHLIB = $(CC) $(DSO_LDOPTS) -Wl,-soname -Wl,$(@:$(OBJDIR)/%.so=%.so) $(RPATH)
  62. +MKSHLIB = $(CC) $(DSO_LDOPTS) -Wl,-soname -Wl,$(@:$(OBJDIR)/%.so=%.so) $(RPATH) $(fpic) -Wl,--gc-sections,--as-needed
  63. ifdef MAPFILE
  64. MKSHLIB += -Wl,--version-script,$(MAPFILE)
  65. --- a/nss/coreconf/UNIX.mk
  66. +++ b/nss/coreconf/UNIX.mk
  67. @@ -10,7 +10,6 @@ AR = ar cr $@
  68. LDOPTS += -L$(SOURCE_LIB_DIR)
  69. ifdef BUILD_OPT
  70. - OPTIMIZER += -O
  71. DEFINES += -UDEBUG -DNDEBUG
  72. else
  73. OPTIMIZER += -g