a51c6f460b
https://github.com/nayuki/QR-Code-generator/compare/v1.8.0...856ba8a - switch build to cmake files from https://github.com/EasyCoding/qrcodegen-cmake.git - This build also adds the pkgconfig and cmake files for easier integration with other projects ( like the upcoming obs-studio 31.0.0) - drop patches: 0002-Make-use-of-fPIC-parameter-when-building.patch 0003-Generate-both-shared-and-static-libraries.patch 0004-Create-install-targets-for-C-and-CPP.patch - use %ldconfig_scriptlets - add BR for pkgconfig to ensure we get the pkgconfig provides OBS-URL: https://build.opensuse.org/package/show/LibreOffice:Factory/QR-Code-generator?expand=0&rev=10
40 lines
1.1 KiB
Diff
40 lines
1.1 KiB
Diff
From 8b4866c98775680abc49e8c1c0c50daa25dea052 Mon Sep 17 00:00:00 2001
|
|
From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= <tchvatal@suse.com>
|
|
Date: Tue, 3 Dec 2019 11:59:59 +0100
|
|
Subject: [PATCH 2/5] Make use of -fPIC parameter when building'
|
|
|
|
---
|
|
c/Makefile | 2 +-
|
|
cpp/Makefile | 2 +-
|
|
2 files changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/c/Makefile b/c/Makefile
|
|
index b27449c..bf79462 100644
|
|
--- a/c/Makefile
|
|
+++ b/c/Makefile
|
|
@@ -77,7 +77,7 @@ $(LIBFILE): $(LIBOBJ)
|
|
|
|
# Object files
|
|
%.o: %.c .deps/timestamp
|
|
- $(CC) $(CFLAGS) -c -o $@ -MMD -MF .deps/$*.d $<
|
|
+ $(CC) $(CFLAGS) -fPIC -c -o $@ -MMD -MF .deps/$*.d $<
|
|
|
|
# Have a place to store header dependencies automatically generated by compiler
|
|
.deps/timestamp:
|
|
diff --git a/cpp/Makefile b/cpp/Makefile
|
|
index 62e03c5..deb8924 100644
|
|
--- a/cpp/Makefile
|
|
+++ b/cpp/Makefile
|
|
@@ -73,7 +73,7 @@ $(LIBFILE): $(LIBOBJ)
|
|
|
|
# Object files
|
|
%.o: %.cpp .deps/timestamp
|
|
- $(CXX) $(CXXFLAGS) -c -o $@ -MMD -MF .deps/$*.d $<
|
|
+ $(CXX) $(CXXFLAGS) -fPIC -c -o $@ -MMD -MF .deps/$*.d $<
|
|
|
|
# Have a place to store header dependencies automatically generated by compiler
|
|
.deps/timestamp:
|
|
--
|
|
2.24.0
|
|
|