void-packages/srcpkgs/zsnes/patches/patch-makefilein.diff

16 lines
538 B
Diff

$NetBSD: patch-makefilein,v 1.1 2007/06/06 22:05:45 rillig Exp $
When linking a program, the linking flags are needed.
--- src/Makefile.in.orig 2007-01-24 21:54:12.000000000 +0100
+++ src/Makefile.in 2007-06-06 23:59:19.000000000 +0200
@@ -104,7 +104,7 @@ main: makefile.dep $(Z_OBJS)
rm -f version.o
$(PSR): parsegen.cpp
- @CXX@ @CXXFLAGS@ -o $@ $< -lz
+ @CXX@ @CXXFLAGS@ -o $@ $< @LDFLAGS@ @LIBS@ -lz
TOOLSEXE=$(TOOL_D)/archopt $(TOOL_D)/cutrtype $(TOOL_D)/extraext\
$(TOOL_D)/macroll $(TOOL_D)/minwhite $(TOOL_D)/nreplace\