Compiling for flatpak

I’m trying to build an application with flatpak where sqlcipher is one of the dependencies.

When I try to compile sqlcipher in flatpaks build environment, it fails on:
ld: cannot find -ltclstub8.6
collect2: error: ld returned 1 exit status
make: *** [Makefile:613: libtclsqlite3.la] Error 1

and I can’t figure out how to solve it. Some help would be greatly appreciated.

Flatpak build string:
flatpak-builder --verbose --repo=repo --force-clean --disable-cache --build-shell=sqlcipher sqlcipher org.kde.sqlcipher_wip.json

Flatpak manifest:
org.kde.sqlcipher_wip.json
{
“app-id”: “org.flatpak.qtox”,
“runtime”: “org.kde.Platform”,
“runtime-version”: “5.10”,
“sdk”: “org.kde.Sdk”,
“command”: “”,
“finish-args”: [
“–socket=x11”,
“–share=network”
],
“modules”: [
{
“name”: “sqlcipher”,
“config-opts”: ["–enable-tempstore=yes"],
“build-options”: {
“cflags”: “-DSQLITE_HAS_CODEC”,
“ldflags”: “-lcrypto”
},
“sources”: [
{
“type”: “archive”,
“url”: “https://www.sqlite.org/2018/sqlite-autoconf-3220000.tar.gz”,
“sha256”: “2824ab1238b706bc66127320afbdffb096361130e23291f26928a027b885c612”
},

			                       {
				                       "type": "archive",
				                       "url": "https://github.com/sqlcipher/sqlcipher/archive/v3.4.2.tar.gz",
				                       "sha256": "69897a5167f34e8a84c7069f1b283aba88cdfa8ec183165c4a5da2c816cfaadb"
			                       }
		                       ]
				}
            ]

}

Hi @Jonathan_Anderson

It looks like it’s picking up a dependency on tcl. I’m not familiar with Flatpak, are you able to modify the cofig-opts within the sqlcipher module and add --disable-tcl?