make/defs.make

changeset 633
6470a2a42f92
parent 526
a294fd0c4b38
child 663
f232d7d67023
     1.1 --- a/make/defs.make	Fri Jun 06 14:34:24 2008 -0700
     1.2 +++ b/make/defs.make	Tue Jun 10 16:39:20 2008 -0700
     1.3 @@ -261,3 +261,21 @@
     1.4  EXPORT_LIST += $(EXPORT_INCLUDE_DIR)/jni.h
     1.5  EXPORT_LIST += $(EXPORT_INCLUDE_DIR)/$(JDK_INCLUDE_SUBDIR)/jni_md.h
     1.6  EXPORT_LIST += $(EXPORT_INCLUDE_DIR)/jmm.h
     1.7 +
     1.8 +# A list of object files built without the platform specific PIC flags, e.g.
     1.9 +# -fPIC on linux. Performance measurements show that by compiling GC related 
    1.10 +# code, we could significantly reduce the GC pause time on 32 bit Linux/Unix
    1.11 +# platforms. See 6454213 for more details.
    1.12 +include $(GAMMADIR)/make/scm.make
    1.13 +
    1.14 +ifneq ($(OSNAME), windows)
    1.15 +  ifndef LP64
    1.16 +    NONPIC_DIRS  = memory oops gc_implementation gc_interface 
    1.17 +    NONPIC_DIRS  := $(foreach dir,$(NONPIC_DIRS), $(GAMMADIR)/src/share/vm/$(dir))
    1.18 +    # Look for source files under NONPIC_DIRS
    1.19 +    NONPIC_FILES := $(foreach dir,$(NONPIC_DIRS),\
    1.20 +                      $(shell find $(dir) \( $(SCM_DIRS) \) -prune -o \
    1.21 +		      -name '*.cpp' -print))
    1.22 +    NONPIC_OBJ_FILES := $(notdir $(subst .cpp,.o,$(NONPIC_FILES)))
    1.23 +  endif
    1.24 +endif

mercurial