mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-30 22:26:42 +00:00
new package:
- add package m4
This commit is contained in:
parent
bc4be5d6ae
commit
d2f0ed1e9e
41
packages/toolchain/devel/m4/build
Executable file
41
packages/toolchain/devel/m4/build
Executable 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
|
@ -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
|
||||
{
|
1
packages/toolchain/devel/m4/url
Normal file
1
packages/toolchain/devel/m4/url
Normal file
@ -0,0 +1 @@
|
||||
http://ftp.gnu.org/gnu/m4/m4-1.4.14.tar.bz2
|
Loading…
x
Reference in New Issue
Block a user