commit:     736ee1f27b0f84869cb6b99db0afffd833e69413
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sun May  5 16:40:36 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun May  5 16:41:03 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=736ee1f2

media-gfx/jhead: fix LDFLAGS patch

We don't want to build jhead itself with -shared, just libjhead.

Closes: https://bugs.gentoo.org/931225
Signed-off-by: Sam James <sam <AT> gentoo.org>

 media-gfx/jhead/files/jhead-3.08-fix-makefile.patch         | 4 ++--
 media-gfx/jhead/{jhead-3.08.ebuild => jhead-3.08-r1.ebuild} | 0
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/media-gfx/jhead/files/jhead-3.08-fix-makefile.patch 
b/media-gfx/jhead/files/jhead-3.08-fix-makefile.patch
index 7f4e80be57ea..edf19da410dc 100644
--- a/media-gfx/jhead/files/jhead-3.08-fix-makefile.patch
+++ b/media-gfx/jhead/files/jhead-3.08-fix-makefile.patch
@@ -10,7 +10,7 @@
 -LDFLAGS:=$(shell dpkg-buildflags --get LDFLAGS)
 -endif
 +CFLAGS ?= -O2
-+LDFLAGS += -fPIC -shared -Wl,-soname,libjhead.so.1
++LFLAGS += -fPIC -shared -Wl,-soname,libjhead.so.1
 +
 +TARGET = libjhead.so.1.0.0
 +TARGET0        = libjhead.so
@@ -36,7 +36,7 @@
        install -m 0644 jhead.1 $(MANDIR)
 +
 +$(TARGET): $(objs) jhead
-+      ${CC} $(LDFLAGS) $(LFLAGS) -o $(TARGET) $(objs)
++      ${CC} $(CFLAGS) $(LDFLAGS) $(LFLAGS) -o $(TARGET) $(objs)
 +      ln -s ${TARGET} ${TARGET0}
 +      ln -s ${TARGET} ${TARGET1}
 +      ln -s ${TARGET} ${TARGET2}

diff --git a/media-gfx/jhead/jhead-3.08.ebuild 
b/media-gfx/jhead/jhead-3.08-r1.ebuild
similarity index 100%
rename from media-gfx/jhead/jhead-3.08.ebuild
rename to media-gfx/jhead/jhead-3.08-r1.ebuild

Reply via email to