Mercurial > hg > truffle
comparison make/pic.make @ 6177:06320b1578cb
7156729: PPC: R_PPC_REL24 relocation error related to some libraries built without -fPIC
Summary: build powerpc with -fPIC
Reviewed-by: mikael, vladidan, roland
Contributed-by: dean.long@oracle.com
author | dlong |
---|---|
date | Mon, 25 Jun 2012 15:34:06 -0400 |
parents | c18cbe5936b8 |
children | 0771839a29ab |
comparison
equal
deleted
inserted
replaced
6176:634b8615a6ba | 6177:06320b1578cb |
---|---|
1 # | 1 # |
2 # Copyright (c) 2006, 2007, Oracle and/or its affiliates. All rights reserved. | 2 # Copyright (c) 2006, 2012, Oracle and/or its affiliates. All rights reserved. |
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. | 3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 # | 4 # |
5 # This code is free software; you can redistribute it and/or modify it | 5 # This code is free software; you can redistribute it and/or modify it |
6 # under the terms of the GNU General Public License version 2 only, as | 6 # under the terms of the GNU General Public License version 2 only, as |
7 # published by the Free Software Foundation. | 7 # published by the Free Software Foundation. |
28 # platforms. See 6454213 for more details. | 28 # platforms. See 6454213 for more details. |
29 include $(GAMMADIR)/make/scm.make | 29 include $(GAMMADIR)/make/scm.make |
30 | 30 |
31 ifneq ($(OSNAME), windows) | 31 ifneq ($(OSNAME), windows) |
32 ifndef LP64 | 32 ifndef LP64 |
33 PARTIAL_NONPIC=1 | |
34 endif | |
35 PIC_ARCH = ppc | |
36 ifneq ("$(filter $(PIC_ARCH),$(BUILDARCH))","") | |
37 PARTIAL_NONPIC=0 | |
38 endif | |
39 ifeq ($(PARTIAL_NONPIC),1) | |
33 NONPIC_DIRS = memory oops gc_implementation gc_interface | 40 NONPIC_DIRS = memory oops gc_implementation gc_interface |
34 NONPIC_DIRS := $(foreach dir,$(NONPIC_DIRS), $(GAMMADIR)/src/share/vm/$(dir)) | 41 NONPIC_DIRS := $(foreach dir,$(NONPIC_DIRS), $(GAMMADIR)/src/share/vm/$(dir)) |
35 # Look for source files under NONPIC_DIRS | 42 # Look for source files under NONPIC_DIRS |
36 NONPIC_FILES := $(foreach dir,$(NONPIC_DIRS),\ | 43 NONPIC_FILES := $(foreach dir,$(NONPIC_DIRS),\ |
37 $(shell find $(dir) \( $(SCM_DIRS) \) -prune -o \ | 44 $(shell find $(dir) \( $(SCM_DIRS) \) -prune -o \ |