mirror of
https://github.com/Waujito/youtubeUnblock.git
synced 2026-01-03 23:28:47 +03:00
Specify dependencies libs explicitly.
Such setup is better for cross compilation. Also changed Makefile to properly make the project with these libraries.
This commit is contained in:
37
deps/libnfnetlink/autogen.sh
vendored
Executable file
37
deps/libnfnetlink/autogen.sh
vendored
Executable file
@@ -0,0 +1,37 @@
|
||||
#!/bin/sh -e
|
||||
|
||||
include ()
|
||||
{
|
||||
# If we keep a copy of the kernel header in the SVN tree, we'll have
|
||||
# to worry about synchronization issues forever. Instead, we just copy
|
||||
# the headers that we need from the lastest kernel version at autogen
|
||||
# stage.
|
||||
|
||||
INCLUDEDIR=${KERNEL_DIR:-/lib/modules/`uname -r`/build}/include/linux
|
||||
|
||||
if [ -f $INCLUDEDIR/netfilter/nfnetlink.h ]
|
||||
then
|
||||
TARGET=include/libnfnetlink/linux_nfnetlink.h
|
||||
echo "Copying nfnetlink.h to linux_nfnetlink.h"
|
||||
cp $INCLUDEDIR/netfilter/nfnetlink.h $TARGET
|
||||
TMP=`mktemp`
|
||||
sed 's/#include <linux\/netfilter\/nfnetlink_compat\.h>/#include <libnfnetlink\/linux_nfnetlink_compat\.h>/g' $TARGET > $TMP
|
||||
cp $TMP $TARGET
|
||||
else
|
||||
echo "can't find nfnetlink.h kernel file in $INCLUDEDIR"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ -f $INCLUDEDIR/netfilter/nfnetlink_compat.h ]
|
||||
then
|
||||
TARGET=include/libnfnetlink/linux_nfnetlink_compat.h
|
||||
echo "Copying nfnetlink_compat.h to linux_nfnetlink_compat.h"
|
||||
cp $INCLUDEDIR/netfilter/nfnetlink_compat.h $TARGET
|
||||
else
|
||||
echo "can't find nfnetlink.h kernel file in $INCLUDEDIR, ignoring"
|
||||
fi
|
||||
}
|
||||
|
||||
[ "x$1" = "xdistrib" ] && include
|
||||
autoreconf -fi
|
||||
rm -Rf autom4te.cache
|
||||
Reference in New Issue
Block a user