Le mercredi 5 août 2009 06:03:09, Michael Geddes a écrit : > Add a libmysqlclient_r target (threadsafe client); required for > module-based apache. >
Applied in r20315, thanks! > Signed-off-by: Michael Geddes <openwrt at frog dot wheelycreek.net> > --------------8<-------------------------- > Index: libs/mysql/Makefile > =================================================================== > --- libs/mysql/Makefile (revision 17079) > +++ libs/mysql/Makefile (working copy) > @@ -4,6 +4,7 @@ > # This is free software, licensed under the GNU General Public License v2. > # See /LICENSE for more information. > # > +# $Id: Makefile 12228 2008-08-06 22:43:15Z nbd $ > > include $(TOPDIR)/rules.mk > > @@ -31,6 +32,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 \ > @@ -42,6 +51,7 @@ > $(call Build/Configure/Default, \ > --enable-shared \ > --enable-static \ > + --enable-thread-safe-client \ > --disable-assembler \ > --with-pthread \ > --without-raid \ > @@ -85,6 +95,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" \ > @@ -106,5 +120,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] > https://lists.openwrt.org/mailman/listinfo/openwrt-devel > _______________________________________________ openwrt-devel mailing list [email protected] https://lists.openwrt.org/mailman/listinfo/openwrt-devel
