generated from gaoyang3513/SDK_RK3288
[Mod] First commit
This commit is contained in:
@ -0,0 +1,34 @@
|
||||
From 119cab666646cd9210439d4696a4bfa18343a2c6 Mon Sep 17 00:00:00 2001
|
||||
From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
||||
Date: Tue, 12 Jul 2022 00:29:28 +0200
|
||||
Subject: [PATCH] DriverManager/drivermanager.h: fix build without threads
|
||||
|
||||
Fix the following build failure without threads raised since version
|
||||
2.3.10 and commit 6df155fb213896b9507b421c58856e4376647ae1:
|
||||
|
||||
/home/buildroot/autobuild/run/instance-2/output-1/host/opt/ext-toolchain/bin/../lib/gcc/arm-buildroot-linux-uclibcgnueabihf/9.3.0/../../../../arm-buildroot-linux-uclibcgnueabihf/bin/ld: ../DriverManager/.libs/libodbc.so: undefined reference to `pool_timedwait'
|
||||
/home/buildroot/autobuild/run/instance-2/output-1/host/opt/ext-toolchain/bin/../lib/gcc/arm-buildroot-linux-uclibcgnueabihf/9.3.0/../../../../arm-buildroot-linux-uclibcgnueabihf/bin/ld: ../DriverManager/.libs/libodbc.so: undefined reference to `pool_signal'
|
||||
|
||||
Fixes:
|
||||
- http://autobuild.buildroot.org/results/131eafaddfc956c7d54c81ed72a31baf28ab1ab6
|
||||
|
||||
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
||||
[Retrieved from:
|
||||
https://github.com/lurcher/unixODBC/commit/119cab666646cd9210439d4696a4bfa18343a2c6]
|
||||
---
|
||||
DriverManager/drivermanager.h | 2 ++
|
||||
1 file changed, 2 insertions(+)
|
||||
|
||||
diff --git a/DriverManager/drivermanager.h b/DriverManager/drivermanager.h
|
||||
index 9528fae..abd324b 100644
|
||||
--- a/DriverManager/drivermanager.h
|
||||
+++ b/DriverManager/drivermanager.h
|
||||
@@ -808,6 +808,8 @@ void pool_signal();
|
||||
|
||||
#define thread_protect(a,b)
|
||||
#define thread_release(a,b)
|
||||
+#define pool_timedwait(a)
|
||||
+#define pool_signal()
|
||||
|
||||
#endif
|
||||
|
||||
12
package/unixodbc/Config.in
Normal file
12
package/unixodbc/Config.in
Normal file
@ -0,0 +1,12 @@
|
||||
config BR2_PACKAGE_UNIXODBC
|
||||
bool "unixodbc"
|
||||
depends on !BR2_STATIC_LIBS # dlopen()
|
||||
help
|
||||
The unixODBC Project goals are to develop and promote
|
||||
unixODBC to be the definitive standard for ODBC on non MS
|
||||
Windows platforms.
|
||||
|
||||
http://www.unixodbc.org
|
||||
|
||||
comment "unixodbc needs a toolchain w/ dynamic library"
|
||||
depends on BR2_STATIC_LIBS
|
||||
4
package/unixodbc/unixodbc.hash
Normal file
4
package/unixodbc/unixodbc.hash
Normal file
@ -0,0 +1,4 @@
|
||||
# Locally computed
|
||||
sha256 d9e55c8e7118347e3c66c87338856dad1516b490fb7c756c1562a2c267c73b5c unixODBC-2.3.11.tar.gz
|
||||
sha256 a6b9aa1e9bfade121164c06fd975e9b913a8e38bf33d25ff967dfa3ed07d12f8 COPYING
|
||||
sha256 1e594f4c7fd6d099eca4bd1340b39d871ce0298331d8ebd4b68935548ee45cf4 exe/COPYING
|
||||
51
package/unixodbc/unixodbc.mk
Normal file
51
package/unixodbc/unixodbc.mk
Normal file
@ -0,0 +1,51 @@
|
||||
################################################################################
|
||||
#
|
||||
# unixodbc
|
||||
#
|
||||
################################################################################
|
||||
|
||||
UNIXODBC_VERSION = 2.3.11
|
||||
UNIXODBC_SOURCE = unixODBC-$(UNIXODBC_VERSION).tar.gz
|
||||
UNIXODBC_SITE = http://www.unixodbc.org
|
||||
UNIXODBC_INSTALL_STAGING = YES
|
||||
UNIXODBC_LICENSE = LGPL-2.1+ (library), GPL-2.0+ (programs)
|
||||
UNIXODBC_LICENSE_FILES = COPYING exe/COPYING
|
||||
UNIXODBC_CPE_ID_VENDOR = unixodbc
|
||||
|
||||
UNIXODBC_CONF_OPTS = --enable-drivers --enable-driver-conf
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBEDIT),y)
|
||||
UNIXODBC_CONF_OPTS += --enable-editline
|
||||
UNIXODBC_DEPENDENCIES += libedit
|
||||
else
|
||||
UNIXODBC_CONF_OPTS += --disable-editline
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBICONV),y)
|
||||
UNIXODBC_CONF_OPTS += --enable-iconv
|
||||
UNIXODBC_DEPENDENCIES += libiconv
|
||||
else
|
||||
UNIXODBC_CONF_OPTS += --disable-iconv
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBTOOL),y)
|
||||
UNIXODBC_CONF_OPTS += --without-included-ltdl
|
||||
UNIXODBC_DEPENDENCIES += libtool
|
||||
else
|
||||
UNIXODBC_CONF_OPTS += --with-included-ltdl
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_READLINE),y)
|
||||
UNIXODBC_CONF_OPTS += --enable-readline
|
||||
UNIXODBC_DEPENDENCIES += readline
|
||||
else
|
||||
UNIXODBC_CONF_OPTS += --disable-readline
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_TOOLCHAIN_HAS_THREADS),y)
|
||||
UNIXODBC_CONF_OPTS += --enable-threads
|
||||
else
|
||||
UNIXODBC_CONF_OPTS += --disable-threads
|
||||
endif
|
||||
|
||||
$(eval $(autotools-package))
|
||||
Reference in New Issue
Block a user