Skip to main content
aboutsummaryrefslogtreecommitdiffstats
path: root/native
diff options
context:
space:
mode:
authorTorbjörn Svensson2020-08-18 19:58:50 +0000
committerJonah Graham2020-09-03 00:27:03 +0000
commit5249144c8cee78fb014f987202b0778239799227 (patch)
treed8102bb64b89fa5fe1d7db617348ec35ad576ab1 /native
parent26e994af153ac6686ced5b8eb16fd2d839b70e58 (diff)
downloadorg.eclipse.cdt-5249144c8cee78fb014f987202b0778239799227.tar.gz
org.eclipse.cdt-5249144c8cee78fb014f987202b0778239799227.tar.xz
org.eclipse.cdt-5249144c8cee78fb014f987202b0778239799227.zip
Bug 521515: Build ppc64le libraries on HIPP
Change-Id: Idd05e27e02b712a0eb6940ebf90a201509140681 Signed-off-by: Torbjörn Svensson <azoff@svenskalinuxforeningen.se>
Diffstat (limited to 'native')
-rw-r--r--native/org.eclipse.cdt.native.serial/native_src/Makefile5
-rwxr-xr-xnative/org.eclipse.cdt.native.serial/os/linux/ppc64le/libserial.sobin0 -> 71072 bytes
2 files changed, 3 insertions, 2 deletions
diff --git a/native/org.eclipse.cdt.native.serial/native_src/Makefile b/native/org.eclipse.cdt.native.serial/native_src/Makefile
index f4703b63a81..bedec0c6917 100644
--- a/native/org.eclipse.cdt.native.serial/native_src/Makefile
+++ b/native/org.eclipse.cdt.native.serial/native_src/Makefile
@@ -29,6 +29,7 @@ LIBS = \
$(OS_DIR)/win32/x86_64/serial.dll \
$(OS_DIR)/linux/x86_64/libserial.so \
$(OS_DIR)/linux/aarch64/libserial.so \
+ $(OS_DIR)/linux/ppc64le/libserial.so \
$(OS_DIR)/macosx/x86_64/libserial.jnilib
else
ifeq ($(UNAME),Darwin)
@@ -65,8 +66,8 @@ $(OS_DIR)/linux/aarch64/libserial.so: serial.c
aarch64-linux-gnu-gcc $(CFLAGS) -Iinclude -I$(JAVA_HOME)/include -I$(JAVA_HOME)/include/linux $(LDFLAGS) -shared -o $@ $^
$(OS_DIR)/linux/ppc64le/libserial.so: serial.c
- mkdir -p $(dir $@) && \
- gcc -m64 -mcpu=power8 $(CFLAGS) -Iinclude -I$(JAVA_HOME)/include -I$(JAVA_HOME)/include/linux $(LDFLAGS) -shared -o $@ $^
+ mkdir -p $(dir $@)
+ powerpc64le-linux-gnu-gcc -m64 -mcpu=power8 $(CFLAGS) -Iinclude -I$(JAVA_HOME)/include -I$(JAVA_HOME)/include/linux $(LDFLAGS) -shared -o $@ serial.c
$(OS_DIR)/macosx/x86_64/libserial.jnilib: serial.c
mkdir -p $(dir $@) && \
diff --git a/native/org.eclipse.cdt.native.serial/os/linux/ppc64le/libserial.so b/native/org.eclipse.cdt.native.serial/os/linux/ppc64le/libserial.so
new file mode 100755
index 00000000000..72b1a3471b2
--- /dev/null
+++ b/native/org.eclipse.cdt.native.serial/os/linux/ppc64le/libserial.so
Binary files differ

Back to the top