proxychains-ng: ensure cross compiler is used
authorPeter Korsgaard <jacmet@sunsite.dk>
Thu, 7 Feb 2013 18:09:38 +0000 (19:09 +0100)
committerPeter Korsgaard <jacmet@sunsite.dk>
Thu, 7 Feb 2013 18:19:19 +0000 (19:19 +0100)
commit2831427373db54b076e19c59c60c20f1018e8204
treedb5e137949dad85ef376117a9d053264e3dab25a
parent2356d08bbdf18677e14cb21d18c9e024e749d50b
proxychains-ng: ensure cross compiler is used

Fixes http://autobuild.buildroot.org/results/e184fcb1c100e9d8aa3d9f18a8caee8c0839e207

Contrary to what the .mk file states, proxychains-ng doesn't use autotools.
Instead it uses a handwritten configure script, so convert it to
generic-package.

This handwritten configure script generates config.mak which is then
included by the Makefile. Unfortunately config.mak does:

CC ?= $(TARGET_CC)

But as make sets CC to 'cc' by default, this never does anything - So
it ends up using the host compiler (and target CFLAGS), breaking the build.

Fix it by passing the correct CC setting at build time as well.

While we're at it, also cleanup the package by using 'make install-config'
to install the configuration file.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
package/proxychains-ng/proxychains-ng.mk