-$(PKG_IPK): $(PKG_BUILD_DIR)/ipkg/rules
- cd $(PKG_BUILD_DIR); \
- TOPDIR="$(TOPDIR)" IPKG_RULES_INC="$(TOPDIR)/rules.mk" \
- INSTALL_DIR="$(STAGING_DIR)" \
- ./ipkg/rules package
+$(PKG_BUILD_DIR)/.configured: $(PKG_BUILD_DIR)/.prepared
+ (cd $(PKG_BUILD_DIR); rm -rf config.cache config.status; \
+ touch configure.in; \
+ touch aclocal.m4; \
+ touch Makefile.in; \
+ touch config.h.in; \
+ touch configure; \
+ $(TARGET_CONFIGURE_OPTS) \
+ CPPFLAGS="-I$(STAGING_DIR)/usr/include" \
+ LDFLAGS="-L$(STAGING_DIR)/usr/lib" \
+ OPTIMIZE_CFLAGS="$(TARGET_CFLAGS)" \
+ OPTIMIZE_CXXFLAGS="$(TARGET_CFLAGS)" \
+ ac_atomic_add=yes \
+ ac_atomic_sub=yes \
+ ac_cv_sys_restartable_syscalls=yes \
+ ac_cv_conv_longlong_to_float=yes \
+ mysql_cv_compress=yes \
+ mysql_cv_gethostname_style=glibc2 \
+ ./configure \
+ --target=$(GNU_TARGET_NAME) \
+ --host=$(GNU_TARGET_NAME) \
+ --build=$(GNU_HOST_NAME) \
+ --program-prefix="" \
+ --program-suffix="" \
+ --prefix=/usr \
+ --exec-prefix=/usr \
+ --bindir=/usr/bin \
+ --datadir=/usr/share \
+ --includedir=/usr/include \
+ --infodir=/usr/share/info \
+ --libdir=/usr/lib \
+ --libexecdir=/usr/lib \
+ --localstatedir=/var \
+ --mandir=/usr/share/man \
+ --sbindir=/usr/sbin \
+ --sysconfdir=/etc \
+ $(DISABLE_NLS) \
+ $(DISABLE_LARGEFILE) \
+ --enable-shared \
+ --enable-static \
+ --disable-assembler \
+ --with-pthread \
+ --without-raid \
+ --with-unix-socket-path=/tmp \
+ --without-libwrap \
+ --without-pstack \
+ --with-low-memory \
+ --without-server \
+ --without-embedded-server \
+ --without-query-cache \
+ --without-mysqlfs \
+ --without-vio \
+ --without-openssl \
+ --without-docs \
+ --without-bench \
+ --without-readline \
+ );
+ touch $(PKG_BUILD_DIR)/.configured