summaryrefslogtreecommitdiff
path: root/emulators/zsnes/patches/patch-makefilein
blob: 32190d92d27ff2b888a8f4c94692feb76abc2af3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
$NetBSD: patch-makefilein,v 1.1 2007/06/06 22:05:45 rillig Exp $

When linking a program, the linking flags are needed.

--- Makefile.in.orig	2007-01-24 21:54:12.000000000 +0100
+++ 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\