void-packages/srcpkgs/xob/patches/0001-fix-linking-order.patch

22 lines
550 B
Diff

From f9fc63952749b7bb9d03778dbe68666160a97e4b Mon Sep 17 00:00:00 2001
From: Guillaume Babin <645219+gbabin@users.noreply.github.com>
Date: Wed, 22 Aug 2018 21:00:49 +0200
Subject: [PATCH] Fix #4: Change position of LDFLAGS in Makefile
---
Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- Makefile
+++ Makefile
@@ -16,7 +16,7 @@ MANPREFIX ?= $(PREFIX)/share/man
all: $(PROGRAM)
$(PROGRAM): $(OBJECTS)
- $(CC) $(LDFLAGS) -o $@ $(OBJECTS)
+ $(CC) -o $@ $(OBJECTS) $(LDFLAGS)
%.o: %.c %.h
$(CC) $(CFLAGS) -c -o $@ $<