diff options
author | Sam James <sam@gentoo.org> | 2022-09-14 23:32:43 +0100 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2022-09-14 23:32:43 +0100 |
commit | 5f377980c1cdf66c35bee011b0caae95e8c93220 (patch) | |
tree | 1b34ee9b8689ce9ea8d4d243b539283d8579f813 /dev-lang/duktape | |
parent | app-office/abiword: Fix lose precision on musl (diff) | |
download | gentoo-5f377980c1cdf66c35bee011b0caae95e8c93220.tar.gz gentoo-5f377980c1cdf66c35bee011b0caae95e8c93220.tar.bz2 gentoo-5f377980c1cdf66c35bee011b0caae95e8c93220.zip |
dev-lang/duktape: fix libm underlinking
Closes: https://bugs.gentoo.org/870163
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-lang/duktape')
-rw-r--r-- | dev-lang/duktape/duktape-2.7.0-r2.ebuild (renamed from dev-lang/duktape/duktape-2.7.0-r1.ebuild) | 1 | ||||
-rw-r--r-- | dev-lang/duktape/files/duktape-2.7.0-underlinked-libm.patch | 25 |
2 files changed, 26 insertions, 0 deletions
diff --git a/dev-lang/duktape/duktape-2.7.0-r1.ebuild b/dev-lang/duktape/duktape-2.7.0-r2.ebuild index 72e9787eeba0..4dc7046bdd37 100644 --- a/dev-lang/duktape/duktape-2.7.0-r1.ebuild +++ b/dev-lang/duktape/duktape-2.7.0-r2.ebuild @@ -17,6 +17,7 @@ KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~loong ppc ppc64 ~riscv ~s390 sparc PATCHES=( "${FILESDIR}"/${PN}-2.7.0-respect-tc-env.patch + "${FILESDIR}"/${P}-underlinked-libm.patch ) src_prepare() { diff --git a/dev-lang/duktape/files/duktape-2.7.0-underlinked-libm.patch b/dev-lang/duktape/files/duktape-2.7.0-underlinked-libm.patch new file mode 100644 index 000000000000..6b0962ed7617 --- /dev/null +++ b/dev-lang/duktape/files/duktape-2.7.0-underlinked-libm.patch @@ -0,0 +1,25 @@ +https://github.com/svaarala/duktape/commit/d898ad3920cb08d6918d11d9678bae28393a82d1 +https://bugs.gentoo.org/870163 + +From d898ad3920cb08d6918d11d9678bae28393a82d1 Mon Sep 17 00:00:00 2001 (rebased) +From: tinywrkb <tinywrkb@gmail.com> +Date: Thu, 17 Mar 2022 03:55:51 +0200 +Subject: [PATCH] Makefile.sharedlibrary: link against libm + +Closes #2464. +--- a/Makefile.sharedlibrary ++++ b/Makefile.sharedlibrary +@@ -71,11 +71,11 @@ all: libduktape.$(SO_REALNAME_SUFFIX) libduktaped.$(SO_REALNAME_SUFFIX) duktape. + + libduktape.$(SO_REALNAME_SUFFIX): + $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -shared -fPIC -Wall -Wextra -Wl,$(LD_SONAME_ARG),libduktape.$(SO_SONAME_SUFFIX) \ +- -o $@ $(DUKTAPE_SRCDIR)/duktape.c ++ -o $@ $(DUKTAPE_SRCDIR)/duktape.c -lm + + libduktaped.$(SO_REALNAME_SUFFIX): + $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -shared -fPIC -Wall -Wextra -Wl,$(LD_SONAME_ARG),libduktaped.$(SO_SONAME_SUFFIX) \ +- -o $@ $(DUKTAPE_SRCDIR)/duktape.c ++ -o $@ $(DUKTAPE_SRCDIR)/duktape.c -lm + + duktape.pc: + sed -e "s|@PREFIX@|$(INSTALL_PREFIX)|" \ |