new package:

- add package m4
This commit is contained in:
Stephan Raue 2010-06-06 00:16:19 +02:00
parent bc4be5d6ae
commit d2f0ed1e9e
3 changed files with 53 additions and 0 deletions

View File

@ -0,0 +1,41 @@
#!/bin/sh
. config/options
# build for host
setup_toolchain host
cd $BUILD/$1*
mkdir -p .objdir-host
cd .objdir-host
gl_cv_func_gettimeofday_clobber=no \
../configure --host=$HOST_NAME \
--build=$HOST_NAME \
--target=$TARGET_NAME \
--prefix=$ROOT/$TOOLCHAIN \
make
make install
cd $ROOT
# build for target
setup_toolchain target
# Fails to compile with GCC's link time optimization.
CFLAGS=`echo $CFLAGS | sed -e "s|-flto||" -e "s|-fuse-linker-plugin||"`
CXXFLAGS=`echo $CXXFLAGS | sed -e "s|-flto||" -e "s|-fuse-linker-plugin||"`
LDFLAGS=`echo $LDFLAGS | sed -e "s|-flto||" -e "s|-fuse-linker-plugin||" -e "s|-fwhole-program||"`
cd $BUILD/$1*
mkdir -p .objdir-target
cd .objdir-target
gl_cv_func_gettimeofday_clobber=no \
../configure --host=$TARGET_NAME \
--build=$HOST_NAME \
--prefix=$SYSROOT_PREFIX/usr \
make
make install

View File

@ -0,0 +1,11 @@
diff -Naur m4-1.4.14/src/path.c m4-1.4.14.patch/src/path.c
--- m4-1.4.14/src/path.c 2010-01-28 14:01:57.000000000 +0100
+++ m4-1.4.14.patch/src/path.c 2010-06-05 19:29:48.805582949 +0200
@@ -23,6 +23,7 @@
and "sinclude". */
#include "m4.h"
+#include <sys/stat.h>
struct includes
{

View File

@ -0,0 +1 @@
http://ftp.gnu.org/gnu/m4/m4-1.4.14.tar.bz2