diff options
Diffstat (limited to 'meta-oe/recipes-dbs/psqlodbc/files/psqlodbc-remove-some-checks-for-cross-compiling.patch')
-rw-r--r-- | meta-oe/recipes-dbs/psqlodbc/files/psqlodbc-remove-some-checks-for-cross-compiling.patch | 42 |
1 files changed, 29 insertions, 13 deletions
diff --git a/meta-oe/recipes-dbs/psqlodbc/files/psqlodbc-remove-some-checks-for-cross-compiling.patch b/meta-oe/recipes-dbs/psqlodbc/files/psqlodbc-remove-some-checks-for-cross-compiling.patch index 1d988182e7..9131d70be6 100644 --- a/meta-oe/recipes-dbs/psqlodbc/files/psqlodbc-remove-some-checks-for-cross-compiling.patch +++ b/meta-oe/recipes-dbs/psqlodbc/files/psqlodbc-remove-some-checks-for-cross-compiling.patch | |||
@@ -1,3 +1,6 @@ | |||
1 | From 8ca6b0c72b6b933642ec7c4ebb83734244fec46f Mon Sep 17 00:00:00 2001 | ||
2 | From: "Song.Li" <Song.Li@windriver.com> | ||
3 | Date: Tue, 5 Sep 2017 10:24:10 +0800 | ||
1 | Subject: [PATCH] remove some checks for cross-compiling | 4 | Subject: [PATCH] remove some checks for cross-compiling |
2 | 5 | ||
3 | some lib check is not suitable for | 6 | some lib check is not suitable for |
@@ -8,15 +11,16 @@ Upstream-Status: Inappropriate [not a real bug,just for cross-compiling] | |||
8 | Signed-off-by: Song.Li <Song.Li@windriver.com> | 11 | Signed-off-by: Song.Li <Song.Li@windriver.com> |
9 | Signed-off-by: Kai Kang <kai.kang@windriver.com> | 12 | Signed-off-by: Kai Kang <kai.kang@windriver.com> |
10 | Signed-off-by: Jackie Huang <jackie.huang@windriver.com> | 13 | Signed-off-by: Jackie Huang <jackie.huang@windriver.com> |
14 | |||
11 | --- | 15 | --- |
12 | configure.ac | 66 +++++++----------------------------------------------------- | 16 | configure.ac | 80 +++++----------------------------------------------- |
13 | 1 file changed, 7 insertions(+), 59 deletions(-) | 17 | 1 file changed, 7 insertions(+), 73 deletions(-) |
14 | 18 | ||
15 | diff --git a/configure.ac b/configure.ac | 19 | diff --git a/configure.ac b/configure.ac |
16 | index df5ad7a..b72bd4c 100644 | 20 | index 7f79563..00b359e 100644 |
17 | --- a/configure.ac | 21 | --- a/configure.ac |
18 | +++ b/configure.ac | 22 | +++ b/configure.ac |
19 | @@ -46,57 +46,19 @@ AC_ARG_WITH(iodbc, [ --with-iodbc[[=DIR]] [[default=no]] DIR is the iODBC bas | 23 | @@ -57,71 +57,20 @@ AC_ARG_WITH(iodbc, [ --with-iodbc[[=DIR]] [[default=no]] DIR is the iODBC bas |
20 | if test "$with_iodbc" != no; then | 24 | if test "$with_iodbc" != no; then |
21 | with_unixodbc=no | 25 | with_unixodbc=no |
22 | AC_DEFINE(WITH_IODBC, 1, [Define to 1 to build with iODBC support]) | 26 | AC_DEFINE(WITH_IODBC, 1, [Define to 1 to build with iODBC support]) |
@@ -34,6 +38,7 @@ index df5ad7a..b72bd4c 100644 | |||
34 | - fi | 38 | - fi |
35 | fi | 39 | fi |
36 | 40 | ||
41 | wo_odbc_config=__without_odbc_config | ||
37 | if test "$with_unixodbc" != no; then | 42 | if test "$with_unixodbc" != no; then |
38 | AC_DEFINE(WITH_UNIXODBC, 1, | 43 | AC_DEFINE(WITH_UNIXODBC, 1, |
39 | [Define to 1 to build with unixODBC support]) | 44 | [Define to 1 to build with unixODBC support]) |
@@ -42,7 +47,9 @@ index df5ad7a..b72bd4c 100644 | |||
42 | - else | 47 | - else |
43 | - ODBC_CONFIG=$with_unixodbc | 48 | - ODBC_CONFIG=$with_unixodbc |
44 | - fi | 49 | - fi |
45 | - if test ! -x "${ODBC_CONFIG}/bin/odbc_config"; then | 50 | - if test "${ODBC_CONFIG}" = "${wo_odbc_config}"; then |
51 | - : | ||
52 | - elif test ! -x "${ODBC_CONFIG}/bin/odbc_config"; then | ||
46 | - if test ! -x "${ODBC_CONFIG}"; then | 53 | - if test ! -x "${ODBC_CONFIG}"; then |
47 | - AC_MSG_ERROR([odbc_config not found (required for unixODBC build)]) | 54 | - AC_MSG_ERROR([odbc_config not found (required for unixODBC build)]) |
48 | - fi | 55 | - fi |
@@ -62,22 +69,33 @@ index df5ad7a..b72bd4c 100644 | |||
62 | - # Linking libiodoc is rather problematic | 69 | - # Linking libiodoc is rather problematic |
63 | - [ODBC_LIBDIR=`${ODBC_CONFIG} --libs | sed -e "s/^\(-L\|.*[ \t]-L\)\([^ \n\r\f\t]*\).*$/-L\2/"`] | 70 | - [ODBC_LIBDIR=`${ODBC_CONFIG} --libs | sed -e "s/^\(-L\|.*[ \t]-L\)\([^ \n\r\f\t]*\).*$/-L\2/"`] |
64 | - LDFLAGS="$LDFLAGS ${ODBC_LIBDIR}" | 71 | - LDFLAGS="$LDFLAGS ${ODBC_LIBDIR}" |
72 | - LIBODBC=`${ODBC_CONFIG} --libs` # for regression test | ||
73 | - elif test "${ODBC_CONFIG}" = "${wo_odbc_config}"; then | ||
74 | - ODBC_INCLUDE=/usr/include | ||
75 | - CPPFLAGS="$CPPFLAGS -I${ODBC_INCLUDE}" | ||
76 | - ODBC_LIBDiR="" | ||
77 | - LIBODBC="-lodbc" # for regression test | ||
65 | - else | 78 | - else |
66 | - ODBC_INCLUDE=`${ODBC_CONFIG} --include-prefix` | 79 | - ODBC_INCLUDE=`${ODBC_CONFIG} --include-prefix` |
67 | - CPPFLAGS="$CPPFLAGS -I${ODBC_INCLUDE}" | 80 | - CPPFLAGS="$CPPFLAGS -I${ODBC_INCLUDE}" |
68 | - # Linking libodoc is rather problematic | 81 | - # Linking libodbc is rather problematic |
69 | - ODBC_LIBDIR=`${ODBC_CONFIG} --lib-prefix` | 82 | - ODBC_LIBDIR=`${ODBC_CONFIG} --lib-prefix` |
70 | - LDFLAGS="$LDFLAGS -L${ODBC_LIBDIR}" | 83 | - if test "${ODBC_LIBDIR}" != ""; then |
84 | - LDFLAGS="$LDFLAGS -L${ODBC_LIBDIR}" | ||
85 | - fi | ||
86 | - LIBODBC=`${ODBC_CONFIG} --libs` # for regression test | ||
71 | - fi | 87 | - fi |
72 | - AC_MSG_NOTICE([using $ODBC_INCLUDE $ODBC_LIBDIR]) | 88 | - AC_MSG_NOTICE([using $ODBC_INCLUDE $ODBC_LIBDIR]) |
89 | - AC_MSG_NOTICE([using $LIBODBC for regression test]) | ||
73 | -fi | 90 | -fi |
91 | -AC_SUBST(LIBODBC) | ||
74 | +ODBC_LIBS="-lodbcinst" | 92 | +ODBC_LIBS="-lodbcinst" |
75 | +LIBS="$LIBS ${ODBC_LIBS}" | 93 | +LIBS="$LIBS ${ODBC_LIBS}" |
76 | +AC_MSG_NOTICE([using $ODBC_INCLUDE $ODBC_LIBS]) | 94 | +AC_MSG_NOTICE([using $ODBC_INCLUDE $ODBC_LIBS]) |
77 | 95 | ||
78 | # | 96 | # |
79 | # SQLCOLATTRIBUTE_SQLLEN check | 97 | # SQLCOLATTRIBUTE_SQLLEN check |
80 | @@ -176,18 +138,10 @@ PGAC_ARG_BOOL(enable, pthreads, yes, | 98 | @@ -190,19 +139,10 @@ PGAC_ARG_BOOL(enable, pthreads, yes, |
81 | # Find libpq headers and libraries | 99 | # Find libpq headers and libraries |
82 | # | 100 | # |
83 | 101 | ||
@@ -87,8 +105,9 @@ index df5ad7a..b72bd4c 100644 | |||
87 | - | 105 | - |
88 | -if test -n "$PG_CONFIG"; then | 106 | -if test -n "$PG_CONFIG"; then |
89 | - pg_includedir=`"$PG_CONFIG" --includedir` | 107 | - pg_includedir=`"$PG_CONFIG" --includedir` |
108 | - pg_pkg_includedir=`"$PG_CONFIG" --pkgincludedir` | ||
90 | - pg_libdir=`"$PG_CONFIG" --libdir` | 109 | - pg_libdir=`"$PG_CONFIG" --libdir` |
91 | - CPPFLAGS="$CPPFLAGS -I$pg_includedir" | 110 | - CPPFLAGS="$CPPFLAGS -I$pg_includedir -I$pg_pkg_includedir/internal" |
92 | - LDFLAGS="$LDFLAGS -L$pg_libdir" | 111 | - LDFLAGS="$LDFLAGS -L$pg_libdir" |
93 | -fi | 112 | -fi |
94 | - | 113 | - |
@@ -100,7 +119,7 @@ index df5ad7a..b72bd4c 100644 | |||
100 | 119 | ||
101 | # 1. Programs | 120 | # 1. Programs |
102 | 121 | ||
103 | @@ -211,12 +165,6 @@ if test "$with_iodbc" != no; then | 122 | @@ -226,12 +166,6 @@ if test "$with_iodbc" != no; then |
104 | [AC_MSG_ERROR([iODBC library "iodbcinst" not found])]) | 123 | [AC_MSG_ERROR([iODBC library "iodbcinst" not found])]) |
105 | fi | 124 | fi |
106 | 125 | ||
@@ -113,6 +132,3 @@ index df5ad7a..b72bd4c 100644 | |||
113 | AC_CHECK_LIB(pq, PQsetSingleRowMode, [], | 132 | AC_CHECK_LIB(pq, PQsetSingleRowMode, [], |
114 | [AC_MSG_ERROR([libpq library version >= 9.2 is required])]) | 133 | [AC_MSG_ERROR([libpq library version >= 9.2 is required])]) |
115 | 134 | ||
116 | -- | ||
117 | 2.8.1 | ||
118 | |||