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 --- firebird2-1.5.2.orig/builds/posix/make.rules
10 +++ firebird2-1.5.2/builds/posix/make.rules
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
30 STATICLIB_LINK= ar cruvs
31 # LIB_LINK_OPTIONS = -soname libgds.$(SHRLIB_EXT) -rpath /usr/lib
32 # LIB_LINK_OPTIONS = -soname libgds.$(SHRLIB_EXT).2 -rpath /usr/lib