-
Bug
-
Resolution: Fixed
-
P4
-
10.0.1
-
master
-
linux
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8202963 | 10u-cpu | Severin Gehwolf | P4 | Resolved | Fixed | master |
JDK-8202923 | 10.0.2 | Severin Gehwolf | P4 | Resolved | Fixed | b07 |
When building JDK 10 with extra link flags like so:
$ configure --with-extra-ldflags="...."
The extra link flags are not being passed to the command when libjsig.so is being linked.
Example:
$ configure --with-extra-ldflags="-Xlinker -z -Xlinker defs"
Then in build.log I see this:
[...]
Linking libjsig.so
( /usr/bin/gcc -Wl,--hash-style=both -Wl,-z,noexecstack -shared -m64 -o /disk/openjdk/upstream-sources/openjdk-10u/build/linux-x86_64-normal-server-release/support/modules_libs/java.base/libjsig.so /disk/openjdk/upstream-sources/openjdk-10u/build/linux-x86_64-normal-server-release/hotspot/libjsig/objs/jsig.o -ldl
[...]
Note that no "-Xlinker -z -Xlinker defs" flags are being passed.
This is not reproducible on JDK 11.
$ configure --with-extra-ldflags="...."
The extra link flags are not being passed to the command when libjsig.so is being linked.
Example:
$ configure --with-extra-ldflags="-Xlinker -z -Xlinker defs"
Then in build.log I see this:
[...]
Linking libjsig.so
( /usr/bin/gcc -Wl,--hash-style=both -Wl,-z,noexecstack -shared -m64 -o /disk/openjdk/upstream-sources/openjdk-10u/build/linux-x86_64-normal-server-release/support/modules_libs/java.base/libjsig.so /disk/openjdk/upstream-sources/openjdk-10u/build/linux-x86_64-normal-server-release/hotspot/libjsig/objs/jsig.o -ldl
[...]
Note that no "-Xlinker -z -Xlinker defs" flags are being passed.
This is not reproducible on JDK 11.
- backported by
-
JDK-8202923 libjsig.so not linked with extra linker flags from configure
- Resolved
-
JDK-8202963 libjsig.so not linked with extra linker flags from configure
- Resolved
- relates to
-
JDK-8205104 EXTRA_LDFLAGS not consistently being used
- Resolved