Commit 8602581
[java-interop] Enabling -fPIC on Linux build - part 2 (#518)
We recently changed the build options to enable fPIC on Linux builds
in commit 10ba45a, but there were a couple of places still missing.
The `src/java-interop` build fails on Linux Ubuntu 19.10:
gcc -g -shared -m64 -o bin/TestDebug/libNativeTiming.so tests/NativeTiming/timing.c -I/usr/lib/jvm/java-1.8.0-openjdk-amd64/include -I/usr/lib/jvm/java-1.8.0-openjdk-amd64/include/linux
/usr/bin/ld: /tmp/ccmuRrxZ.o: relocation R_X86_64_PC32 against symbol `foo_void_timing' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: nonrepresentable section on output
collect2: error: ld returned 1 exit status
Update the Linux build to use `gcc -fPIC` so that `src/java-interop`
can be linked successfully.1 parent ff3081d commit 8602581
File tree
3 files changed
+3
-3
lines changed- src/java-interop
- tests/invocation-overhead
3 files changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
112 | | - | |
| 112 | + | |
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
| 46 | + | |
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
0 commit comments