summaryrefslogtreecommitdiff
path: root/package/file/Makefile
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2009-06-05 19:58:50 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2009-06-05 19:58:50 +0200
commite874f84fdb6eb83d905a72b35d87398374594b97 (patch)
tree38ecc86989a194756836fa411c4bfb7c4b68913f /package/file/Makefile
parent68e89ea1a3ec3690ddefbd97c45174f799847a16 (diff)
more regressions found at runtime on alic1c
Diffstat (limited to 'package/file/Makefile')
-rw-r--r--package/file/Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/package/file/Makefile b/package/file/Makefile
index 88f9a39b4..25b371d6e 100644
--- a/package/file/Makefile
+++ b/package/file/Makefile
@@ -21,6 +21,14 @@ CONFIGURE_STYLE:= gnu
BUILD_STYLE:= auto
INSTALL_STYLE:= auto
+pre-configure:
+ (cd ${WRKBUILD}; rm -rf config.{cache,status} ; \
+ CFLAGS="-static" ./configure --enable-static --disable-shared \
+ );
+ ${MAKE} -C ${WRKBUILD}
+ ${INSTALL_BIN} ${WRKBUILD}/src/file ${STAGING_TOOLS}/bin
+ ${MAKE} -C ${WRKBUILD} clean
+
post-install:
${INSTALL_DIR} ${IDIR_FILE}/usr/bin ${IDIR_FILE}/usr/lib ${IDIR_FILE}/usr/share/misc
${INSTALL_BIN} ${WRKINST}/usr/bin/file ${IDIR_FILE}/usr/bin