The libmysqlclient_r library is required to get the php5 mysql module building.
I do not use mysql so this has not been tested for funtionality... but it gets the build going. Signed-off-by: Michael Geddes <michael at frog dot wheelycreek dot net> -- Index: packages/libs/mysql/Makefile =================================================================== --- packages/libs/mysql/Makefile (revision 11372) +++ packages/libs/mysql/Makefile (working copy) @@ -35,6 +35,14 @@ URL:=http://dev.mysql.com/ endef +define Package/libmysqlclient_r + SECTION:=libs + CATEGORY:=Libraries + DEPENDS:=+zlib + TITLE:=MySQL client library threadsafe + URL:=http://dev.mysql.com/ +endef + define Build/Configure (cd $(PKG_BUILD_DIR); touch \ configure.in \ @@ -46,6 +54,7 @@ $(call Build/Configure/Default, \ --enable-shared \ --enable-static \ + --enable-thread-safe-client \ --disable-assembler \ --with-pthread \ --without-raid \ @@ -87,6 +96,10 @@ DESTDIR="$(PKG_INSTALL_DIR)" \ all install $(MAKE) -C "$(PKG_BUILD_DIR)" \ + SUBDIRS="libmysql_r" \ + DESTDIR="$(PKG_INSTALL_DIR)" \ + all install + $(MAKE) -C "$(PKG_BUILD_DIR)" \ SUBDIRS="scripts" \ DESTDIR="$(PKG_INSTALL_DIR)" \ bin_SCRIPTS="mysql_config" \ @@ -108,5 +121,10 @@ $(INSTALL_DIR) $(1)/usr/lib $(CP) $(PKG_INSTALL_DIR)/usr/lib/mysql/libmysqlclient.so.* $(1)/usr/lib/ endef +define Package/libmysqlclient_r/install + $(INSTALL_DIR) $(1)/usr/lib + $(CP) $(PKG_INSTALL_DIR)/usr/lib/mysql/libmysqlclient_r.so.* $(1)/usr/lib/ +endef $(eval $(call BuildPackage,libmysqlclient)) +$(eval $(call BuildPackage,libmysqlclient_r)) _______________________________________________ openwrt-devel mailing list [email protected] http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
