aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/ufraw/files/patch-Makefile
blob: 71b273dfd9ca0ecaba8f24fb1d471425cca4d521 (plain) (blame)
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
When creating the nikon-curve app, the Makefile calls gcc46 which does not automatically include the libstdc++.so library causing the undefined symbols.  By calling g++46 instead, libstdc++.so is included in the link resolving the symbols.

Patch attached with submission follows:

--- Makefile.in.orig    2012-01-15 08:13:07.000000000 -0700
+++ Makefile.in 2012-01-15 08:14:38.000000000 -0700
@@ -126,8 +126,6 @@
 @MAKE_EXTRAS_TRUE@ nikon_curve-nikon_curve.$(OBJEXT)
 nikon_curve_OBJECTS = $(am_nikon_curve_OBJECTS)
 @MAKE_EXTRAS_TRUE@nikon_curve_DEPENDENCIES = $(am__DEPENDENCIES_1)
-nikon_curve_LINK = $(CCLD) $(nikon_curve_CFLAGS) $(CFLAGS) \
-   $(nikon_curve_LDFLAGS) $(LDFLAGS) -o $@
 ufraw_SOURCES = ufraw.c
 ufraw_OBJECTS = ufraw.$(OBJEXT)
 ufraw_LDADD = $(LDADD)
@@ -491,6 +489,7 @@
 @MAKE_EXTRAS_TRUE@nikon_curve_CFLAGS = $(UFRAW_CPPFLAGS) -D_STAND_ALONE_
 @MAKE_EXTRAS_TRUE@nikon_curve_LDFLAGS = @CONSOLE@
 @MAKE_EXTRAS_TRUE@nikon_curve_LDADD = $(UFRAW_LDADD)
+@MAKE_EXTRAS_TRUE@nikon_curve_LINK = $(CXXLINK) @CONSOLE@
 all: config.h
    $(MAKE) $(AM_MAKEFLAGS) all-recursive
 
@@ -709,7 +708,7 @@
    $(AM_V_CXXLD)$(dcraw_LINK) $(dcraw_OBJECTS) $(dcraw_LDADD) $(LIBS)
 nikon-curve$(EXEEXT): $(nikon_curve_OBJECTS) $(nikon_curve_DEPENDENCIES) 
    @rm -f nikon-curve$(EXEEXT)
-   $(AM_V_CCLD)$(nikon_curve_LINK) $(nikon_curve_OBJECTS) $(nikon_curve_LDADD) $(LIBS)
+   $(AM_V_GEN)$(nikon_curve_LINK) $(nikon_curve_OBJECTS) $(nikon_curve_LDADD) $(LIBS)
 ufraw$(EXEEXT): $(ufraw_OBJECTS) $(ufraw_DEPENDENCIES) 
    @rm -f ufraw$(EXEEXT)
    $(AM_V_CCLD)$(LINK) $(ufraw_OBJECTS) $(ufraw_LDADD) $(LIBS)