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/.
7 # Config stuff for HP-UX
10 include $(CORE_DEPTH
)/coreconf
/UNIX.mk
14 ifeq ($(OS_TEST
),ia64
)
16 CPU_TAG
= _
$(CPU_ARCH
)
30 OS_CFLAGS
+= $(DSO_CFLAGS
) -DHPUX
-D
$(CPU_ARCH
) -D_HPUX_SOURCE
-D_USE_BIG_FDS
32 ifeq ($(DEFAULT_IMPL_STRATEGY
),_PTH
)
34 ifeq ($(CLASSIC_NSPR
),1)
36 IMPL_STRATEGY
= _CLASSIC
38 ifeq ($(PTHREADS_USER
),1)
40 IMPL_STRATEGY
= _PTH_USER
45 OS_CFLAGS
+= -D_POSIX_C_SOURCE
=199506L
53 MKSHLIB
= $(LD
) $(DSO_LDOPTS
) $(RPATH
)
56 MKSHLIB
+= -c
$(MAPFILE
)
58 MKSHLIB
+= -Wl
,-c
,$(MAPFILE
)
61 PROCESS_MAP_FILE
= grep
-v
';+' $< | grep
-v
';-' | \
62 sed
-e
's; DATA ;;' -e
's,;;,,' -e
's,;.*,,' -e
's,^,+e ,' > $@
65 DSO_LDOPTS
= -b
+h
$(notdir $@
)
68 DSO_LDOPTS
= -shared
-Wl
,+h
,$(notdir $@
)
69 RPATH
= -Wl
,+b
,'$$ORIGIN'
71 ifneq ($(OS_TEST
),ia64
)
78 # +Z generates position independent code for use in shared libraries.
83 ASFLAGS
+= -x assembler-with-cpp