1 #! /bin/sh /usr/share/dpatch/dpatch-run
2 ## 008_link-with-g++.dpatch by <divanov@creditreform.bg>
4 ## All lines beginning with `## DP:' are a description of the patch.
5 ## DP: use g++ to link objects
9 --- firebird-1.5.4.4910/builds/posix/make.rules.orig 2006-11-05 15:37:30.000000000 +0100
10 +++ firebird-1.5.4.4910/builds/posix/make.rules 2007-02-17 23:05:38.259344867 +0100
12 ifdef UseLibToolForLink
15 - LIB_LINK= libtool $(CC(
16 - STATICLIB_LINK = libtool $(CC) -all-static
17 + LIB_LINK= libtool $(CXX)
18 + STATICLIB_LINK = libtool $(CXX) -all-static
19 # LIB_LINK_OPTIONS = -version-info 0:0:0 -release 1.5.0.0 -rpath /usr/lib
20 LIB_LINK_OPTIONS += -version-info 0:0:0 -release 1.5.0.0 $(LIB_LINK_RPATH)$(FirebirdInstallPrefix)/lib
22 - EXE_LINK = libtool $(CC)
23 - STATICEXE_LINK = libtool $(CC) -all-static
24 + EXE_LINK = libtool $(CXX)
25 + STATICEXE_LINK = libtool $(CXX) -all-static
33 STATICLIB_LINK= ar cruvs