diff options
Diffstat (limited to 'dev-tcltk')
-rw-r--r-- | dev-tcltk/snack/files/snack-2.2.10-lto.patch | 28 | ||||
-rw-r--r-- | dev-tcltk/snack/snack-2.2.10-r9.ebuild | 1 |
2 files changed, 29 insertions, 0 deletions
diff --git a/dev-tcltk/snack/files/snack-2.2.10-lto.patch b/dev-tcltk/snack/files/snack-2.2.10-lto.patch new file mode 100644 index 000000000000..27c6b6c9126f --- /dev/null +++ b/dev-tcltk/snack/files/snack-2.2.10-lto.patch @@ -0,0 +1,28 @@ +--- a/generic/sound.c 2022-07-18 08:21:20.492977432 +0200 ++++ b/generic/sound.c 2022-07-18 08:21:44.720698702 +0200 +@@ -120,9 +120,9 @@ + int littleEndian = 0; + + #ifdef __cplusplus +-extern "C" SnackStubs *snackStubs; ++extern "C" SnackStubs snackStubs; + #else +-extern SnackStubs *snackStubs; ++extern SnackStubs snackStubs; + #endif + + extern Tcl_HashTable *filterHashTable; +--- a/generic/snack.c 2022-07-18 08:21:29.953868734 +0200 ++++ b/generic/snack.c 2022-07-18 08:22:05.978453035 +0200 +@@ -203,9 +203,9 @@ + int littleEndian = 0; + + #ifdef __cplusplus +-extern "C" SnackStubs *snackStubs; ++extern "C" SnackStubs snackStubs; + #else +-extern SnackStubs *snackStubs; ++extern SnackStubs snackStubs; + #endif + + extern Tcl_HashTable *filterHashTable; diff --git a/dev-tcltk/snack/snack-2.2.10-r9.ebuild b/dev-tcltk/snack/snack-2.2.10-r9.ebuild index 4466b95ddb31..d95bd49e31da 100644 --- a/dev-tcltk/snack/snack-2.2.10-r9.ebuild +++ b/dev-tcltk/snack/snack-2.2.10-r9.ebuild @@ -37,6 +37,7 @@ PATCHES=( "${FILESDIR}"/${P}-test.patch "${FILESDIR}"/${PN}${PV}-seektell-fix.patch "${FILESDIR}"/tcl-${P}-python3.patch + "${FILESDIR}"/${P}-lto.patch ) HTML_DOCS="${WORKDIR}/${PN}${PV}/doc/*" |