From: Juergen Beisert Date: Wed, 25 Jan 2012 17:50:07 +0100 Subject: [PATCH] pppd: make the self made configure cross aware Give us a chance to setup targets Kernel and arch. Signed-off-by: Juergen Beisert --- configure | 10 ++++++++++ pppd/plugins/Makefile.linux | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/configure b/configure index 6a55e0f08be4..3886564fa495 100755 --- a/configure +++ b/configure @@ -14,6 +14,16 @@ SYSCONF=/etc # fi state="unknown" +if [ -n $TARGET_OS ]; then + system=$TARGET_OS +fi +if [ -n $TARGET_OS_VER ]; then + release=$TARGET_OS_VER +fi +if [ -n $TARGET_OS_ARCH ]; then + arch=$TARGET_OS_ARCH +fi + case $system in Linux) makext="linux"; diff --git a/pppd/plugins/Makefile.linux b/pppd/plugins/Makefile.linux index 732cc8b411d2..193d884b898b 100644 --- a/pppd/plugins/Makefile.linux +++ b/pppd/plugins/Makefile.linux @@ -44,5 +44,5 @@ clean: for d in $(SUBDIRS); do $(MAKE) $(MFLAGS) -C $$d clean; done depend: - $(CPP) -M $(CFLAGS) *.c >.depend + $(CC) -M $(CFLAGS) *.c >.depend for d in $(SUBDIRS); do $(MAKE) $(MFLAGS) -C $$d depend; done