forked from pool/duktape
Accepting request 1038651 from home:msmeissn:branches:devel:libraries:c_c++
- duktape-link-m.patch: link against libm for sin() and related functions, in case the compiler with -Os creates external references. bsc#1205805 OBS-URL: https://build.opensuse.org/request/show/1038651 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/duktape?expand=0&rev=19
This commit is contained in:
parent
fab91f9556
commit
b726f501f0
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>
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
#
|
||||
# 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
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@ -26,6 +26,7 @@ Group: Development/Libraries/C and C++
|
||||
URL: https://duktape.org/
|
||||
Source0: https://duktape.org/%{name}-%{version}.tar.xz
|
||||
Source1: duktape.pc.in
|
||||
Patch0: duktape-link-m.patch
|
||||
BuildRequires: gcc
|
||||
BuildRequires: pkgconfig
|
||||
|
||||
@ -55,6 +56,7 @@ application that use %{name}.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%patch0 -p1
|
||||
|
||||
sed -e's|@prefix@|%{_prefix}|' \
|
||||
-e's|@libdir@|%{_lib}|' \
|
||||
|
Loading…
Reference in New Issue
Block a user