From f3062fd2e39819bcb1e8bbb76355cc50d7257652 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Fri, 9 Feb 2018 12:01:53 +0100 Subject: solenv/flatpak-manifest.in: Merge in building with GCC 7 This merges in * "switch to gcc7", * "Copy org.freedesktop.Sdk.Extension.gcc7 libs into app", and * "Use `cp -d` to preserve symlinks", which should allow to build on 32-bit arm once "ARM version" is fixed. Those had been reverted again on flathub with "Revert 'Gcc7' again, for now" because it had apeared back then that using GCC 7 caused the build to fail on aarch64. This has meanwhile been tracked down to be an issue with PDFium instead, see ffc134445ef7e935d18d816626f64e65b4cdbca6 "--disable-pdfium for Linux aarch64 Flatpak build". Change-Id: I594d38ecfdf7dbd78b91af04b9f3f3e86987b8e5 --- solenv/flatpak-manifest.in | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/solenv/flatpak-manifest.in b/solenv/flatpak-manifest.in index 0bbd0319d49d..0ad8a349c441 100644 --- a/solenv/flatpak-manifest.in +++ b/solenv/flatpak-manifest.in @@ -4,11 +4,27 @@ "runtime-version": "3.24", "sdk": "org.gnome.Sdk", "sdk-extensions": [ + "org.freedesktop.Sdk.Extension.gcc7", "org.freedesktop.Sdk.Extension.openjdk9" ], + "build-options": { + "env": { + "CC": "/usr/lib/sdk/gcc7/bin/gcc", + "CXX": "/usr/lib/sdk/gcc7/bin/g++", + "LD_LIBRARY_PATH": "/usr/lib/sdk/gcc7/lib" + } + }, "command": "/app/libreoffice/program/soffice", "separate-locales": false, "modules": [ + { + "name": "gcc7", + "buildsystem": "simple", + "build-commands": [ + "mkdir -p /app/lib", + "cp -d /usr/lib/sdk/gcc7/lib/lib{gcc_s.so.1,stdc++.so.6*} /app/lib" + ] + }, { "name": "openjdk", "buildsystem": "simple", -- cgit v1.2.3