From 646a62afdb0d09ecaee1b43b573a7caf2cd0dc8a Mon Sep 17 00:00:00 2001 From: Robert Garrett Date: Mon, 9 Jun 2025 19:27:54 -0500 Subject: [PATCH] Backport a link order fix from upstream Upstream made a fix for the linker ordering after marking v0.1. Since I have the benefit of doing this *years after the fact*, I'll just backport that thing instead of inventing my own fix. --- debian/patches/0001-Fix-linking-in-OBS.patch | 21 ++++++++++++++++++++ debian/patches/series | 1 + 2 files changed, 22 insertions(+) create mode 100644 debian/patches/0001-Fix-linking-in-OBS.patch create mode 100644 debian/patches/series diff --git a/debian/patches/0001-Fix-linking-in-OBS.patch b/debian/patches/0001-Fix-linking-in-OBS.patch new file mode 100644 index 0000000..53ff9c5 --- /dev/null +++ b/debian/patches/0001-Fix-linking-in-OBS.patch @@ -0,0 +1,21 @@ +From: KottV +Date: Wed, 16 Mar 2022 09:11:07 +1000 +Subject: Fix linking in OBS + +Fixes #5. + +(cherry picked from commit c7881dfae9635b99c16ae4b37db19c847cfed115) +--- + src/Makefile | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/Makefile b/src/Makefile +index b0173d8..d42124e 100644 +--- a/src/Makefile ++++ b/src/Makefile +@@ -51,4 +51,4 @@ $(DEPFILES): + include $(wildcard $(DEPFILES)) + + $(TARGET): $(OBJS) +- cc ${LDFLAGS} -lm -o $(TARGET) $(OBJS) ++ cc -o $(TARGET) $(OBJS) ${LDFLAGS} -lm diff --git a/debian/patches/series b/debian/patches/series new file mode 100644 index 0000000..7e03e88 --- /dev/null +++ b/debian/patches/series @@ -0,0 +1 @@ +0001-Fix-linking-in-OBS.patch