diff options
Diffstat (limited to 'recipes-core/openjdk/patches-openjdk-8/openjdk8-silence-d_fortify_source-warning.patch')
-rw-r--r-- | recipes-core/openjdk/patches-openjdk-8/openjdk8-silence-d_fortify_source-warning.patch | 56 |
1 files changed, 0 insertions, 56 deletions
diff --git a/recipes-core/openjdk/patches-openjdk-8/openjdk8-silence-d_fortify_source-warning.patch b/recipes-core/openjdk/patches-openjdk-8/openjdk8-silence-d_fortify_source-warning.patch deleted file mode 100644 index 2c2e333..0000000 --- a/recipes-core/openjdk/patches-openjdk-8/openjdk8-silence-d_fortify_source-warning.patch +++ /dev/null | |||
@@ -1,56 +0,0 @@ | |||
1 | makefiles: Add -Wno-cpp to CFLAGS | ||
2 | |||
3 | The security flag '-D_FORTIFY_SOURCE' requires at least -O to work, | ||
4 | otherwise a warning is given. If CFLAGS additionally contains -Werror, | ||
5 | this warning turns into an error. As Openjdk build system intentionally | ||
6 | deoptimizes certains files due to potential bad codegen during optimization, | ||
7 | build will fail when both '-D_FORTIFY_SOURCE' and '-Werror' are used. | ||
8 | As turning the optimizations back on will likely break things, the | ||
9 | warning is silenced instead. | ||
10 | |||
11 | Upstream-Status: Inappropriate [Yocto-specific fixes] | ||
12 | |||
13 | Signed-off-by: Erkka Kääriä <erkka.kaaria@intel.com> | ||
14 | --- | ||
15 | hotspot/make/linux/makefiles/amd64.make | 2 ++ | ||
16 | hotspot/make/linux/makefiles/i486.make | 2 ++ | ||
17 | hotspot/make/linux/makefiles/zero.make | 2 ++ | ||
18 | 3 files changed, 6 insertions(+) | ||
19 | |||
20 | diff --git hotspot/make/linux/makefiles/amd64.make hotspot/make/linux/makefiles/amd64.make | ||
21 | index 2b77dba..db3965b 100644 | ||
22 | --- hotspot/make/linux/makefiles/amd64.make | ||
23 | +++ hotspot/make/linux/makefiles/amd64.make | ||
24 | @@ -31,4 +31,6 @@ CFLAGS += -DVM_LITTLE_ENDIAN | ||
25 | |||
26 | CFLAGS += -D_LP64=1 | ||
27 | |||
28 | +CFLAGS += -Wno-cpp | ||
29 | + | ||
30 | OPT_CFLAGS/compactingPermGenGen.o = -O1 | ||
31 | diff --git hotspot/make/linux/makefiles/i486.make hotspot/make/linux/makefiles/i486.make | ||
32 | index 86e825d..6a92f09 100644 | ||
33 | --- hotspot/make/linux/makefiles/i486.make | ||
34 | +++ hotspot/make/linux/makefiles/i486.make | ||
35 | @@ -31,4 +31,6 @@ OPT_CFLAGS/sharedRuntimeTrans.o = $(OPT_CFLAGS/NOOPT) | ||
36 | # Must also specify if CPU is little endian | ||
37 | CFLAGS += -DVM_LITTLE_ENDIAN | ||
38 | |||
39 | +CFLAGS += -Wno-cpp | ||
40 | + | ||
41 | OPT_CFLAGS/compactingPermGenGen.o = -O1 | ||
42 | diff --git hotspot/make/linux/makefiles/zero.make hotspot/make/linux/makefiles/zero.make | ||
43 | index 0270711..2b05f33 100644 | ||
44 | --- hotspot/make/linux/makefiles/zero.make | ||
45 | +++ hotspot/make/linux/makefiles/zero.make | ||
46 | @@ -28,5 +28,7 @@ | ||
47 | # Select which files to use (in top.make) | ||
48 | TYPE = ZERO | ||
49 | |||
50 | +CFLAGS += -Wno-cpp | ||
51 | + | ||
52 | # Install libjvm.so, etc in in server directory. | ||
53 | VM_SUBDIR = server | ||
54 | -- | ||
55 | 2.7.4 | ||
56 | |||