- add ld.so.conf for flatpak

- more stuff to setup 32 bit platform
This commit is contained in:
SoapyMan 2023-04-02 01:43:54 +06:00
parent 3c4fe2c0d0
commit ade9c48828
2 changed files with 20 additions and 6 deletions

5
.flatpak/ld.so.conf Normal file
View File

@ -0,0 +1,5 @@
# We just make any GL32 extension have higher priority
include /run/flatpak/ld.so.conf.d/app-*-org.freedesktop.Platform.GL32.*.conf
/app/lib32
/app/lib/i386-linux-gnu
/lib64

View File

@ -57,15 +57,24 @@ cleanup:
modules:
- name: ld-i386
- name: platform-bootstrap
buildsystem: simple
build-commands:
- mkdir -p /app/lib/i386-linux-gnu /app/lib/debug/lib/i386-linux-gnu
- install -Dm644 -t /app/etc ld.so.conf
- |
set -e
mkdir -p /app/bin
mkdir -p /app/lib/i386-linux-gnu
mkdir -p /app/lib/debug/lib/i386-linux-gnu
mkdir -p /app/lib/i386-linux-gnu/GL
cp /usr/bin/addr2line /app/bin/
cp /usr/lib/x86_64-linux-gnu/libbfd-*.so /app/lib/
install -Dm644 -t /app/etc ld.so.conf
mkdir -p /app/links/lib
ln -srv /app/lib /app/links/lib/x86_64-linux-gnu
ln -srv /app/lib32 /app/links/lib/i386-linux-gnu
sources:
- type: shell
commands:
- echo "/app/lib32" > ld.so.conf
- type: dir
path: .flatpak
- name: game
buildsystem: simple