summaryrefslogtreecommitdiffstats
path: root/src/libmysqlclient.mk
diff options
context:
space:
mode:
authorTony Theodore <tonyt@logyst.com>2015-10-08 14:03:54 (GMT)
committerTony Theodore <tonyt@logyst.com>2015-10-08 14:03:54 (GMT)
commitd8af97c4e9fe9e4305d6447a7b7d42d6d42e3f35 (patch)
treed391e8f345e8683ed92dd504083923ab16403eea /src/libmysqlclient.mk
parente56179c7dec5ea1f9041df0e6983b51402a5c384 (diff)
downloadmxe-d8af97c4e9fe9e4305d6447a7b7d42d6d42e3f35.zip
mxe-d8af97c4e9fe9e4305d6447a7b7d42d6d42e3f35.tar.gz
mxe-d8af97c4e9fe9e4305d6447a7b7d42d6d42e3f35.tar.bz2
libmysqlclient: install mysql_config and missing headers, remove pthreads dep
Diffstat (limited to 'src/libmysqlclient.mk')
-rw-r--r--src/libmysqlclient.mk6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/libmysqlclient.mk b/src/libmysqlclient.mk
index 58d1137..104ef7f 100644
--- a/src/libmysqlclient.mk
+++ b/src/libmysqlclient.mk
@@ -8,7 +8,7 @@ $(PKG)_CHECKSUM := 2222433012c415871958b61bc4f3683e1ebe77e3389f698b267058c12533e
$(PKG)_SUBDIR := mysql-connector-c-$($(PKG)_VERSION)-src
$(PKG)_FILE := $($(PKG)_SUBDIR).tar.gz
$(PKG)_URL := https://dev.mysql.com/get/Downloads/Connector-C/$($(PKG)_FILE)
-$(PKG)_DEPS := gcc pthreads openssl zlib
+$(PKG)_DEPS := gcc openssl zlib
define $(PKG)_UPDATE
$(WGET) -q -O- 'https://dev.mysql.com/downloads/connector/c/' | \
@@ -41,7 +41,11 @@ define $(PKG)_BUILD
$(MAKE) -C '$(1).build' -j '$(JOBS)' VERBOSE=1
$(MAKE) -C '$(1).build/include' -j 1 install VERBOSE=1
$(MAKE) -C '$(1).build/libmysql' -j 1 install VERBOSE=1
+ $(MAKE) -C '$(1).build/scripts' -j 1 install VERBOSE=1
# no easy way to configure location of dll
-mv '$(PREFIX)/$(TARGET)/lib/$(PKG).dll' '$(PREFIX)/$(TARGET)/bin/'
+
+ # missing headers
+ $(INSTALL) -m644 '$(1)/include/'thr_* '$(1)/include/'my_thr* '$(PREFIX)/$(TARGET)/include'
endef