public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
To: git-commits@fedoraproject.org
Subject: [rpms/libx86emu] epel10.2: Properly apply build flags
Date: Fri, 04 Sep 2026 15:05:03 GMT	[thread overview]
Message-ID: <178853430342.1.7402885785431307821.rpms-libx86emu-a52e5adca33c@fedoraproject.org> (raw)

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)
 

                 reply	other threads:[~2026-09-04 15:05 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=178853430342.1.7402885785431307821.rpms-libx86emu-a52e5adca33c@fedoraproject.org \
    --to=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox