Accepting request 1039751 from devel:libraries:c_c++
OBS-URL: https://build.opensuse.org/request/show/1039751 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/duktape?expand=0&rev=9
This commit is contained in:
commit
dea07fe873
18
duktape-link-m.patch
Normal file
18
duktape-link-m.patch
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
Index: duktape-2.6.0/Makefile.sharedlibrary
|
||||||
|
===================================================================
|
||||||
|
--- duktape-2.6.0.orig/Makefile.sharedlibrary
|
||||||
|
+++ duktape-2.6.0/Makefile.sharedlibrary
|
||||||
|
@@ -63,11 +63,11 @@ all: libduktape.$(SO_REALNAME_SUFFIX) li
|
||||||
|
|
||||||
|
libduktape.$(SO_REALNAME_SUFFIX):
|
||||||
|
$(CC) -shared -fPIC -Wall -Wextra -Os -Wl,$(LD_SONAME_ARG),libduktape.$(SO_SONAME_SUFFIX) \
|
||||||
|
- -o $@ $(DUKTAPE_SRCDIR)/duktape.c
|
||||||
|
+ -o $@ $(DUKTAPE_SRCDIR)/duktape.c -lm
|
||||||
|
|
||||||
|
libduktaped.$(SO_REALNAME_SUFFIX):
|
||||||
|
$(CC) -shared -fPIC -g -Wall -Wextra -Os -Wl,$(LD_SONAME_ARG),libduktaped.$(SO_SONAME_SUFFIX) \
|
||||||
|
- -o $@ $(DUKTAPE_SRCDIR)/duktape.c
|
||||||
|
+ -o $@ $(DUKTAPE_SRCDIR)/duktape.c -lm
|
||||||
|
|
||||||
|
# Symlinks depend on platform conventions.
|
||||||
|
.PHONY: install
|
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Nov 28 10:47:19 UTC 2022 - Marcus Meissner <meissner@suse.com>
|
||||||
|
|
||||||
|
- duktape-link-m.patch: link against libm for sin() and related functions,
|
||||||
|
in case the compiler with -Os creates external references. bsc#1205805
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Oct 30 15:03:19 UTC 2020 - Stefan Brüns <stefan.bruens@rwth-aachen.de>
|
Fri Oct 30 15:03:19 UTC 2020 - Stefan Brüns <stefan.bruens@rwth-aachen.de>
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package duktape
|
# spec file for package duktape
|
||||||
#
|
#
|
||||||
# Copyright (c) 2020 SUSE LLC
|
# Copyright (c) 2022 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -26,6 +26,7 @@ Group: Development/Libraries/C and C++
|
|||||||
URL: https://duktape.org/
|
URL: https://duktape.org/
|
||||||
Source0: https://duktape.org/%{name}-%{version}.tar.xz
|
Source0: https://duktape.org/%{name}-%{version}.tar.xz
|
||||||
Source1: duktape.pc.in
|
Source1: duktape.pc.in
|
||||||
|
Patch0: duktape-link-m.patch
|
||||||
BuildRequires: gcc
|
BuildRequires: gcc
|
||||||
BuildRequires: pkgconfig
|
BuildRequires: pkgconfig
|
||||||
|
|
||||||
@ -55,6 +56,7 @@ application that use %{name}.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
|
%patch0 -p1
|
||||||
|
|
||||||
sed -e's|@prefix@|%{_prefix}|' \
|
sed -e's|@prefix@|%{_prefix}|' \
|
||||||
-e's|@libdir@|%{_lib}|' \
|
-e's|@libdir@|%{_lib}|' \
|
||||||
|
Loading…
Reference in New Issue
Block a user