зеркало из https://github.com/mozilla/pjs.git
Addendum to 303507 - set default OPTIMIZER for Linux and Solaris gcc builds
to -O3, consolidate flags to Linux.mk.
This commit is contained in:
Родитель
e779630b1d
Коммит
ca3db23c1b
|
@ -140,9 +140,6 @@ LIBC_TAG = _glibc
|
||||||
ifeq ($(OS_RELEASE),2.0)
|
ifeq ($(OS_RELEASE),2.0)
|
||||||
OS_REL_CFLAGS += -DLINUX2_0
|
OS_REL_CFLAGS += -DLINUX2_0
|
||||||
MKSHLIB = $(CC) -shared -Wl,-soname -Wl,$(@:$(OBJDIR)/%.so=%.so)
|
MKSHLIB = $(CC) -shared -Wl,-soname -Wl,$(@:$(OBJDIR)/%.so=%.so)
|
||||||
ifdef BUILD_OPT
|
|
||||||
OPTIMIZER = -O2
|
|
||||||
endif
|
|
||||||
ifdef MAPFILE
|
ifdef MAPFILE
|
||||||
MKSHLIB += -Wl,--version-script,$(MAPFILE)
|
MKSHLIB += -Wl,--version-script,$(MAPFILE)
|
||||||
endif
|
endif
|
||||||
|
@ -150,6 +147,10 @@ ifeq ($(OS_RELEASE),2.0)
|
||||||
sed -e 's,;+,,' -e 's; DATA ;;' -e 's,;;,,' -e 's,;.*,;,' > $@
|
sed -e 's,;+,,' -e 's; DATA ;;' -e 's,;;,,' -e 's,;.*,;,' > $@
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifdef BUILD_OPT
|
||||||
|
OPTIMIZER = -O3
|
||||||
|
endif
|
||||||
|
|
||||||
ifeq ($(USE_PTHREADS),1)
|
ifeq ($(USE_PTHREADS),1)
|
||||||
OS_PTHREAD = -lpthread
|
OS_PTHREAD = -lpthread
|
||||||
endif
|
endif
|
||||||
|
|
|
@ -39,9 +39,6 @@ include $(CORE_DEPTH)/coreconf/Linux.mk
|
||||||
ifeq ($(OS_RELEASE),2.1)
|
ifeq ($(OS_RELEASE),2.1)
|
||||||
OS_REL_CFLAGS += -DLINUX2_1
|
OS_REL_CFLAGS += -DLINUX2_1
|
||||||
MKSHLIB = $(CC) $(DSO_LDOPTS) -Wl,-soname -Wl,$(@:$(OBJDIR)/%.so=%.so)
|
MKSHLIB = $(CC) $(DSO_LDOPTS) -Wl,-soname -Wl,$(@:$(OBJDIR)/%.so=%.so)
|
||||||
ifdef BUILD_OPT
|
|
||||||
OPTIMIZER = -O2
|
|
||||||
endif
|
|
||||||
ifdef MAPFILE
|
ifdef MAPFILE
|
||||||
MKSHLIB += -Wl,--version-script,$(MAPFILE)
|
MKSHLIB += -Wl,--version-script,$(MAPFILE)
|
||||||
endif
|
endif
|
||||||
|
|
|
@ -39,9 +39,6 @@ include $(CORE_DEPTH)/coreconf/Linux.mk
|
||||||
|
|
||||||
OS_REL_CFLAGS += -DLINUX2_1
|
OS_REL_CFLAGS += -DLINUX2_1
|
||||||
MKSHLIB = $(CC) $(DSO_LDOPTS) -Wl,-soname -Wl,$(@:$(OBJDIR)/%.so=%.so)
|
MKSHLIB = $(CC) $(DSO_LDOPTS) -Wl,-soname -Wl,$(@:$(OBJDIR)/%.so=%.so)
|
||||||
ifdef BUILD_OPT
|
|
||||||
OPTIMIZER = -O2
|
|
||||||
endif
|
|
||||||
|
|
||||||
ifdef MAPFILE
|
ifdef MAPFILE
|
||||||
MKSHLIB += -Wl,--version-script,$(MAPFILE)
|
MKSHLIB += -Wl,--version-script,$(MAPFILE)
|
||||||
|
|
|
@ -39,9 +39,6 @@ include $(CORE_DEPTH)/coreconf/Linux.mk
|
||||||
|
|
||||||
OS_REL_CFLAGS += -DLINUX2_1
|
OS_REL_CFLAGS += -DLINUX2_1
|
||||||
MKSHLIB = $(CC) $(DSO_LDOPTS) -Wl,-soname -Wl,$(@:$(OBJDIR)/%.so=%.so)
|
MKSHLIB = $(CC) $(DSO_LDOPTS) -Wl,-soname -Wl,$(@:$(OBJDIR)/%.so=%.so)
|
||||||
ifdef BUILD_OPT
|
|
||||||
OPTIMIZER = -O2
|
|
||||||
endif
|
|
||||||
|
|
||||||
ifdef MAPFILE
|
ifdef MAPFILE
|
||||||
MKSHLIB += -Wl,--version-script,$(MAPFILE)
|
MKSHLIB += -Wl,--version-script,$(MAPFILE)
|
||||||
|
|
|
@ -39,9 +39,6 @@ include $(CORE_DEPTH)/coreconf/Linux.mk
|
||||||
|
|
||||||
OS_REL_CFLAGS += -DLINUX2_1
|
OS_REL_CFLAGS += -DLINUX2_1
|
||||||
MKSHLIB = $(CC) $(DSO_LDOPTS) -Wl,-soname -Wl,$(@:$(OBJDIR)/%.so=%.so)
|
MKSHLIB = $(CC) $(DSO_LDOPTS) -Wl,-soname -Wl,$(@:$(OBJDIR)/%.so=%.so)
|
||||||
ifdef BUILD_OPT
|
|
||||||
OPTIMIZER = -O2
|
|
||||||
endif
|
|
||||||
|
|
||||||
ifdef MAPFILE
|
ifdef MAPFILE
|
||||||
MKSHLIB += -Wl,--version-script,$(MAPFILE)
|
MKSHLIB += -Wl,--version-script,$(MAPFILE)
|
||||||
|
|
|
@ -39,9 +39,6 @@ include $(CORE_DEPTH)/coreconf/Linux.mk
|
||||||
|
|
||||||
OS_REL_CFLAGS += -DLINUX2_1
|
OS_REL_CFLAGS += -DLINUX2_1
|
||||||
MKSHLIB = $(CC) $(DSO_LDOPTS) -Wl,-soname -Wl,$(@:$(OBJDIR)/%.so=%.so)
|
MKSHLIB = $(CC) $(DSO_LDOPTS) -Wl,-soname -Wl,$(@:$(OBJDIR)/%.so=%.so)
|
||||||
ifdef BUILD_OPT
|
|
||||||
OPTIMIZER = -O2
|
|
||||||
endif
|
|
||||||
|
|
||||||
ifdef MAPFILE
|
ifdef MAPFILE
|
||||||
MKSHLIB += -Wl,--version-script,$(MAPFILE)
|
MKSHLIB += -Wl,--version-script,$(MAPFILE)
|
||||||
|
|
|
@ -112,7 +112,9 @@ ifdef NS_USE_GCC
|
||||||
OS_CFLAGS += -MDupdate $(DEPENDENCIES)
|
OS_CFLAGS += -MDupdate $(DEPENDENCIES)
|
||||||
endif
|
endif
|
||||||
ifdef BUILD_OPT
|
ifdef BUILD_OPT
|
||||||
OPTIMIZER = -O2
|
OPTIMIZER = -O3
|
||||||
|
# Enable this for accurate dtrace profiling
|
||||||
|
# OPTIMIZER += -mno-omit-leaf-frame-pointer -fno-omit-frame-pointer
|
||||||
endif
|
endif
|
||||||
else
|
else
|
||||||
CC = cc
|
CC = cc
|
||||||
|
|
Загрузка…
Ссылка в новой задаче