]>
Commit | Line | Data |
---|---|---|
32938903 AM |
1 | #! /bin/sh /usr/share/dpatch/dpatch-run |
2 | ## 008_link-with-g++.dpatch by <divanov@creditreform.bg> | |
3 | ## | |
4 | ## All lines beginning with `## DP:' are a description of the patch. | |
5 | ## DP: use g++ to link objects | |
6 | ||
7 | @DPATCH@ | |
8 | ||
9 | --- firebird2-1.5.2.orig/builds/posix/make.rules | |
10 | +++ firebird2-1.5.2/builds/posix/make.rules | |
11 | @@ -91,16 +91,16 @@ | |
12 | ifdef UseLibToolForLink | |
13 | ||
14 | ||
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 | |
21 | ||
22 | - EXE_LINK = libtool $(CC) | |
23 | - STATICEXE_LINK = libtool $(CC) -all-static | |
24 | + EXE_LINK = libtool $(CXX) | |
25 | + STATICEXE_LINK = libtool $(CXX) -all-static | |
26 | else | |
27 | ||
28 | - LIB_LINK= $(CC) | |
29 | + LIB_LINK= $(CXX) | |
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 |