зеркало из https://github.com/mozilla/pjs.git
Netscape-specific change to deal with the fact that many of our machines
have Perl 4 installed on them, and need to keep it where it is for historic reasons. So, we needed a way to be sure we get Perl 5 when building mozilla. This change takes care of that. It may break some people *inside Netscape* initially, but problems should be minimal, as the solution involves simply creating a symlink.
This commit is contained in:
Родитель
b8f3b344ff
Коммит
ef17145f77
139
config/HP-UX.mk
139
config/HP-UX.mk
|
@ -1,139 +0,0 @@
|
|||
#
|
||||
# The contents of this file are subject to the Netscape Public License
|
||||
# Version 1.0 (the "NPL"); you may not use this file except in
|
||||
# compliance with the NPL. You may obtain a copy of the NPL at
|
||||
# http://www.mozilla.org/NPL/
|
||||
#
|
||||
# Software distributed under the NPL is distributed on an "AS IS" basis,
|
||||
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
|
||||
# for the specific language governing rights and limitations under the
|
||||
# NPL.
|
||||
#
|
||||
# The Initial Developer of this code under the NPL is Netscape
|
||||
# Communications Corporation. Portions created by Netscape are
|
||||
# Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
# Reserved.
|
||||
#
|
||||
|
||||
######################################################################
|
||||
# Config stuff for HP-UX
|
||||
######################################################################
|
||||
#
|
||||
######################################################################
|
||||
# Version-independent
|
||||
######################################################################
|
||||
|
||||
ARCH := hpux
|
||||
CPU_ARCH := hppa
|
||||
GFX_ARCH := x
|
||||
|
||||
OS_INCLUDES = -I/usr/include/X11R$(X11_REV) -I/usr/contrib/X11R$(X11_REV)/include -I/usr/include/Motif$(MOTIF_REV)_R$(X11_REV) -I/usr/include/Motif$(MOTIF_REV)
|
||||
G++INCLUDES =
|
||||
LOC_LIB_DIR = /usr/lib/X11
|
||||
MOTIF =
|
||||
MOTIFLIB =
|
||||
MOTIF_REV = 1.2
|
||||
OS_LIBS = -ldld
|
||||
|
||||
PLATFORM_FLAGS = $(DSO_CFLAGS) -DHPUX -Dhpux -DHPUX$(subst .,,$(subst .0,,$(suffix $(OS_RELEASE)))) -DHPUX$(subst .,,$(subst .0,,$(suffix $(OS_RELEASE))))$(subst .,_,$(OS_VERSION)) -D$(CPU_ARCH) $(ADDITIONAL_CFLAGS)
|
||||
MOVEMAIL_FLAGS = -DHAVE_STRERROR
|
||||
PORT_FLAGS = -D_HPUX_SOURCE -DSW_THREADS -DNO_SIGNED -DNO_FNDELAY -DHAVE_ODD_SELECT -DNO_CDEFS_H -DNEED_IOCTL_H -DNEED_MATH_H -DUSE_NODL_TABS -DMITSHM -DNEED_SYS_WAIT_H -DHAVE_INT32_T -DNEED_UINT_T -DNEED_H_ERRNO
|
||||
PDJAVA_FLAGS =
|
||||
|
||||
OS_CFLAGS = $(PLATFORM_FLAGS) $(PORT_FLAGS) $(MOVEMAIL_FLAGS)
|
||||
|
||||
LOCALE_MAP = $(DEPTH)/cmd/xfe/intl/hpux.lm
|
||||
EN_LOCALE = american.iso88591
|
||||
DE_LOCALE = german.iso88591
|
||||
FR_LOCALE = french.iso88591
|
||||
JP_LOCALE = japanese.euc
|
||||
SJIS_LOCALE = japanese
|
||||
KR_LOCALE = korean
|
||||
CN_LOCALE = chinese-s
|
||||
TW_LOCALE = chinese-t.big5
|
||||
I2_LOCALE = i2
|
||||
IT_LOCALE = it
|
||||
SV_LOCALE = sv
|
||||
ES_LOCALE = es
|
||||
NL_LOCALE = nl
|
||||
PT_LOCALE = pt
|
||||
|
||||
######################################################################
|
||||
# Version-specific stuff
|
||||
######################################################################
|
||||
|
||||
ifeq ($(OS_RELEASE),A.09)
|
||||
OS_LIBS += -L/lib/pa1.1 -lm
|
||||
ifndef NS_USE_GCC
|
||||
NO_INLINE = +d
|
||||
endif
|
||||
else
|
||||
PORT_FLAGS += -DHAVE_SNPRINTF
|
||||
OS_LIBS += -lm
|
||||
endif
|
||||
|
||||
ifeq ($(OS_RELEASE),B.10)
|
||||
PORT_FLAGS += -DRW_NO_OVERLOAD_SCHAR -DHAVE_MODEL_H
|
||||
JAVA_PROG = $(CONTRIB_BIN)java
|
||||
endif
|
||||
|
||||
ifeq ($(OS_RELEASE),B.11)
|
||||
PLATFORM_FLAGS += -DHPUX10
|
||||
MOTIF_REV = 2.1
|
||||
endif
|
||||
|
||||
######################################################################
|
||||
# Overrides for defaults in config.mk (or wherever)
|
||||
######################################################################
|
||||
|
||||
ifndef NS_USE_GCC
|
||||
CC = cc -Ae
|
||||
CCC = CC -Aa +a1 $(NO_INLINE)
|
||||
endif
|
||||
|
||||
BSDECHO = $(DIST)/bin/bsdecho
|
||||
DLL_SUFFIX = sl
|
||||
EMACS = /bin/true
|
||||
PERL = $(LOCAL_BIN)perl
|
||||
|
||||
ifdef BUILD_OPT
|
||||
ifdef NS_USE_GCC
|
||||
OPTIMIZER = -O
|
||||
else
|
||||
OPTIMIZER = -O +Onolimit
|
||||
endif
|
||||
endif
|
||||
|
||||
######################################################################
|
||||
# Other
|
||||
######################################################################
|
||||
|
||||
ifdef MOZ_USE_X11R6
|
||||
X11_REV = 6
|
||||
else
|
||||
X11_REV = 5
|
||||
endif
|
||||
|
||||
ifdef SERVER_BUILD
|
||||
ifndef NS_USE_GCC
|
||||
PLATFORM_FLAGS += +DA1.0
|
||||
endif
|
||||
PLATFORM_FLAGS += -Wl,-E
|
||||
endif
|
||||
|
||||
ELIBS_CFLAGS = -g -DHAVE_STRERROR
|
||||
|
||||
HAVE_PURIFY = 1
|
||||
MUST_BOOTLEG_ALLOCA = 1
|
||||
BUILD_UNIX_PLUGINS = 1
|
||||
|
||||
MKSHLIB = $(LD) $(DSO_LDOPTS)
|
||||
|
||||
DSO_LDOPTS = -b
|
||||
DSO_LDFLAGS =
|
||||
|
||||
ifdef NS_USE_GCC
|
||||
DSO_CFLAGS = -fPIC
|
||||
else
|
||||
DSO_CFLAGS = +Z
|
||||
endif
|
|
@ -88,7 +88,6 @@ CCC = CC -woff 3247
|
|||
endif
|
||||
|
||||
ifeq ($(OS_RELEASE)$(OS_VERSION),5.3)
|
||||
PERL = $(LOCAL_BIN)perl5
|
||||
ifndef NS_USE_GCC
|
||||
XGOT_FLAG = -xgot
|
||||
#
|
||||
|
@ -118,6 +117,10 @@ WHOAMI = /bin/whoami
|
|||
UNZIP_PROG = $(NS_BIN)unzip
|
||||
ZIP_PROG = $(NS_BIN)zip
|
||||
|
||||
ifdef NETSCAPE_HIERARCHY
|
||||
PERL = perl5
|
||||
endif
|
||||
|
||||
######################################################################
|
||||
# Other
|
||||
######################################################################
|
||||
|
|
|
@ -1,95 +0,0 @@
|
|||
#
|
||||
# The contents of this file are subject to the Netscape Public License
|
||||
# Version 1.0 (the "NPL"); you may not use this file except in
|
||||
# compliance with the NPL. You may obtain a copy of the NPL at
|
||||
# http://www.mozilla.org/NPL/
|
||||
#
|
||||
# Software distributed under the NPL is distributed on an "AS IS" basis,
|
||||
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
|
||||
# for the specific language governing rights and limitations under the
|
||||
# NPL.
|
||||
#
|
||||
# The Initial Developer of this code under the NPL is Netscape
|
||||
# Communications Corporation. Portions created by Netscape are
|
||||
# Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
# Reserved.
|
||||
#
|
||||
|
||||
######################################################################
|
||||
# Config stuff for SunOS4.1.x
|
||||
######################################################################
|
||||
#
|
||||
######################################################################
|
||||
# Version-independent
|
||||
######################################################################
|
||||
|
||||
ARCH := sunos
|
||||
CPU_ARCH := sparc
|
||||
GFX_ARCH := x
|
||||
|
||||
OS_INCLUDES = -I/usr/X11R5/include -I$(MOTIF)/include
|
||||
G++INCLUDES =
|
||||
LOC_LIB_DIR = /usr/openwin/lib/locale
|
||||
MOTIF = /home/motif/usr
|
||||
MOTIFLIB = -L$(MOTIF)/lib -lXm
|
||||
OS_LIBS = -ldl -lm
|
||||
|
||||
PLATFORM_FLAGS = -Wall -Wno-format -DSUNOS4
|
||||
MOVEMAIL_FLAGS =
|
||||
PORT_FLAGS = -DSW_THREADS -DNEED_SYSCALL -DSTRINGS_ALIGNED -DNO_REGEX -DNO_ISDIR -DUSE_RE_COMP -DNO_REGCOMP -DUSE_GETWD -DNO_MEMMOVE -DNO_ALLOCA -DBOGUS_MB_MAX -DNO_CONST -DHAVE_ODD_SEND -DHAVE_ODD_IOCTL -DHAVE_FILIO_H -DMITSHM -DNEED_SYS_WAIT_H -DNO_TZNAME -DNEED_SYS_TIME_H -DNO_MULTICAST -DHAVE_INT32_T -DNEED_UINT_T -DUSE_ODD_SSCANF -DUSE_ODD_SPRINTF -DNO_IOSTREAM_H
|
||||
PDJAVA_FLAGS =
|
||||
|
||||
ifdef USE_AUTOCONF
|
||||
OS_CFLAGS =
|
||||
else
|
||||
OS_CFLAGS = $(PLATFORM_FLAGS) $(PORT_FLAGS) $(MOVEMAIL_FLAGS)
|
||||
endif
|
||||
|
||||
LOCALE_MAP = $(DEPTH)/cmd/xfe/intl/sunos.lm
|
||||
EN_LOCALE = en_US
|
||||
DE_LOCALE = de
|
||||
FR_LOCALE = fr
|
||||
JP_LOCALE = ja
|
||||
SJIS_LOCALE = ja_JP.SJIS
|
||||
KR_LOCALE = ko
|
||||
CN_LOCALE = zh
|
||||
TW_LOCALE = zh_TW
|
||||
I2_LOCALE = i2
|
||||
IT_LOCALE = it
|
||||
SV_LOCALE = sv
|
||||
ES_LOCALE = es
|
||||
NL_LOCALE = nl
|
||||
PT_LOCALE = pt
|
||||
|
||||
######################################################################
|
||||
# Version-specific stuff
|
||||
######################################################################
|
||||
|
||||
######################################################################
|
||||
# Overrides for defaults in config.mk (or wherever)
|
||||
######################################################################
|
||||
|
||||
DLL_SUFFIX = so.1.0
|
||||
PERL = $(LOCAL_SUN4)perl
|
||||
RANLIB = /bin/ranlib
|
||||
TAR = /usr/bin/tar
|
||||
WHOAMI = /usr/ucb/whoami
|
||||
UNZIP_PROG = $(NS_BIN)unzip
|
||||
ZIP_PROG = $(NS_BIN)zip
|
||||
|
||||
######################################################################
|
||||
# Other
|
||||
######################################################################
|
||||
|
||||
ifndef NO_MDUPDATE
|
||||
MDUPDATE_FLAGS = -MDupdate $(DEPENDENCIES)
|
||||
endif
|
||||
|
||||
HAVE_PURIFY = 1
|
||||
MUST_BOOTLEG_ALLOCA = 1
|
||||
BUILD_UNIX_PLUGINS = 1
|
||||
|
||||
MKSHLIB = $(LD) -L$(MOTIF)/lib
|
||||
|
||||
DSO_LDOPTS =
|
||||
DSO_LDFLAGS =
|
|
@ -111,6 +111,10 @@ PROCESSOR_ARCHITECTURE = _$(CPU_ARCH)
|
|||
UNZIP_PROG = $(NS_BIN)unzip
|
||||
ZIP_PROG = $(NS_BIN)zip
|
||||
|
||||
ifdef NETSCAPE_HIERARCHY
|
||||
PERL = perl5
|
||||
endif
|
||||
|
||||
######################################################################
|
||||
# Other
|
||||
######################################################################
|
||||
|
|
|
@ -79,7 +79,10 @@ CC = $(DEPTH)/build/hcc
|
|||
CCC = $(DEPTH)/build/hcpp
|
||||
EMACS = /bin/true
|
||||
WHOAMI = /usr/ucb/whoami
|
||||
PERL = $(LOCAL_BIN)perl
|
||||
|
||||
ifdef NETSCAPE_HIERARCHY
|
||||
PERL = perl5
|
||||
endif
|
||||
|
||||
######################################################################
|
||||
# Other
|
||||
|
|
|
@ -215,7 +215,7 @@ else
|
|||
JAVA_PROG = $(LOCAL_BIN)java
|
||||
JAVAC_ZIP = $(JAVA_LIB)/javac.zip
|
||||
endif
|
||||
PERL = $(NS_BIN)perl
|
||||
PERL = perl
|
||||
TAR = tar
|
||||
EMACS = xemacs
|
||||
WHOAMI = /usr/bin/whoami
|
||||
|
|
Загрузка…
Ссылка в новой задаче