public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/libx86emu] epel10.2: Properly apply build flags
@ 2026-09-04 15:05
0 siblings, 0 replies; only message in thread
From: @ 2026-09-04 15:05 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/libx86emu
Branch : epel10.2
Commit : a52e5adca33cd09d0e2c9a97dc6532832cab1d19
Author : Björn Esser <besser82@fedoraproject.org>
Date : 2017-11-16T15:04:33+01:00
Stats : +21/-4 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/libx86emu/c/a52e5adca33cd09d0e2c9a97dc6532832cab1d19?branch=epel10.2
Log:
Properly apply build flags
---
diff --git a/libx86emu-1.11-ldflags.patch b/libx86emu-1.11-ldflags.patch
new file mode 100644
index 0000000..20e320f
--- /dev/null
+++ b/libx86emu-1.11-ldflags.patch
@@ -0,0 +1,11 @@
+--- Makefile.orig 2017-11-16 15:00:14.579051907 +0100
++++ Makefile 2017-11-16 15:00:31.728134481 +0100
+@@ -45,7 +45,7 @@
+ install -m 644 -D include/x86emu.h $(DESTDIR)/usr/include/x86emu.h
+
+ $(LIB_NAME): .depend $(OBJS)
+- $(CC) -shared -Wl,-soname,$(LIB_SONAME) $(OBJS) -o $(LIB_NAME)
++ $(CC) -shared -Wl,-soname,$(LIB_SONAME) $(LDFLAGS) $(OBJS) -o $(LIB_NAME)
+
+ test:
+ make -C test
diff --git a/libx86emu.spec b/libx86emu.spec
index 5b287c1..337ba46 100644
--- a/libx86emu.spec
+++ b/libx86emu.spec
@@ -2,18 +2,21 @@
LIBDIR=%{_libdir} \\\
GIT2LOG=: \\\
VERSION=%%{version} \\\
- MAJOR_VERSION=%%(echo %%{version} |cut -d. -f1) \\\
- CFLAGS="%%{optflags} -fPIC"
+ MAJOR_VERSION=%%(echo %{version} |cut -d. -f1) \\\
+ CFLAGS="-fPIC %{optflags}" \\\
+ LDFLAGS="-fPIC %{__global_ldflags}"
Name: libx86emu
Version: 1.11
-Release: 2%{?dist}
+Release: 3%{?dist}
Summary: x86 emulation library
License: BSD
URL: https://github.com/wfeldt/libx86emu
Source0: https://github.com/wfeldt/libx86emu/archive/%{version}/%{name}-%{version}.tar.gz
+Patch0: libx86emu-1.11-ldflags.patch
+
BuildRequires: gcc
%description
@@ -33,7 +36,7 @@ library.
%prep
-%setup -q
+%autosetup
%build
@@ -60,6 +63,9 @@ library.
%changelog
+* Thu Nov 16 2017 Björn Esser <besser82@fedoraproject.org> - 1.11-3
+- Properly apply build flags
+
* Fri Aug 25 2017 Lubomir Rintel <lkundrak@v3.sk> - 1.11-2
- Better align with packaging guidelines (thanks Robert-André Mauchin)
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-09-04 15:05 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-04 15:05 [rpms/libx86emu] epel10.2: Properly apply build flags
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox