summaryrefslogtreecommitdiff
path: root/geography/gpsbabel/patches/patch-ad
blob: 7afffec52dd7a07aec1744946a5408b457609093 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
$NetBSD: patch-ad,v 1.5 2015/06/06 12:57:58 gdt Exp $

This patch was rejected by upstream.  There is a comment in upstream
Makefile.in that explains why there is no space, and output flag is
set to "-o ", so that the output flag can be set to "-Fo" for MSVC.n

On NetBSD, the upstream version works, but there is some mysterious
failure on Mac OS X.  This patch therefore needs investigation and
resolution to be filed with upstream.  (It almost certainly breaks
native compilation on Windows, but that's not a pkgsrc platform.)

--- Makefile.in.orig	2014-12-17 00:47:31.000000000 +0000
+++ Makefile.in
@@ -119,9 +119,9 @@ OBJS = main.o globals.o $(LIBOBJS) @FILE
 DEPFILES = $(OBJS:.o=.d)
 
 .cc.o:
-	$(CXX) @CPPFLAGS@ @CXXFLAGS@ -c $(GBCFLAGS) $< $(OUTPUT_SWITCH)$@
+	$(CXX) @CPPFLAGS@ @CXXFLAGS@ -c $(GBCFLAGS) $< $(OUTPUT_SWITCH) $@
 .c.o:
-	$(CC) @CPPFLAGS@ @CFLAGS@ -c $(GBCFLAGS) $< $(OUTPUT_SWITCH)$@
+	$(CC) @CPPFLAGS@ @CFLAGS@ -c $(GBCFLAGS) $< $(OUTPUT_SWITCH) $@
 
 
 
@@ -141,10 +141,10 @@ gui linux-gui mac-gui mac-gui-dmg msvc-b
 all: gpsbabel$(EXEEXT)
 
 gpsbabel$(EXEEXT): configure Makefile $(OBJS) @GPSBABEL_DEBUG@ 
-	$(CXX) $(CXXFLAGS) $(LDFLAGS) $(OBJS) @LIBS@ $(QT_LIBS) @USB_LIBS@ $(OUTPUT_SWITCH)$@
+	$(CXX) $(CXXFLAGS) $(LDFLAGS) $(OBJS) @LIBS@ $(QT_LIBS) @USB_LIBS@ $(OUTPUT_SWITCH) $@
 
 gpsbabel-debug: $(OBJS)
-	$(CXX) $(CXXFLAGS) $(LDFLAGS) $(OBJS) @LIBS@ @EFENCE_LIB@ $(QT_LIBS) @USB_LIBS@ $(OUTPUT_SWITCH)$@
+	$(CXX) $(CXXFLAGS) $(LDFLAGS) $(OBJS) @LIBS@ @EFENCE_LIB@ $(QT_LIBS) @USB_LIBS@ $(OUTPUT_SWITCH) $@
 
 Makefile gbversion.h: Makefile.in config.status xmldoc/makedoc.in \
 	  gbversion.h.in gui/setup.iss.in
@@ -157,7 +157,7 @@ config.status: configure 
 	$(SHELL) config.status --recheck
 
 jeeps/gpslibusb.o: 
-	$(CXX) @CPPFLAGS@ @CXXFLAGS@ -c $(GBCFLAGS) @USB_CFLAGS@ @srcdir@/jeeps/gpslibusb.cc $(OUTPUT_SWITCH)$@
+	$(CXX) @CPPFLAGS@ @CXXFLAGS@ -c $(GBCFLAGS) @USB_CFLAGS@ @srcdir@/jeeps/gpslibusb.cc $(OUTPUT_SWITCH) $@
 
 fileinfo.o: win32/gpsbabel.rc
 	$(RC) -o fileinfo.o win32/gpsbabel.rc