@@ -29,7 +29,7 @@ openvpn:
&& git checkout $(OPENVPN_VERSION) \
&& git am ../patches/*.patch \
&& autoreconf -i -v -f \
- && ./configure --host=$(HOST) --disable-snappy --disable-lzo
+ && OPENSSL_SSL_CFLAGS="-I/home/vincent/openssl-1.0.1g/include"
OPENSSL_SSL_LIBS="-L/home/vincent/openssl-1.0.1g -lssl -ldl" ./configure
--host=arm-linux --disable-snappy --disable-lzo
make -C $(OPENVPN_DIR)
If "--host=" has no argument, It will use x86 by default. And autoconf will
automatically add gcc to the end of
$(host) to be cross-compiler name. If we do following change, we won't
force to use gcc.
@@ -14,7 +14,7 @@ odp:
if [ ! -d odp.git ]; \
then git clone http://git.linaro.org/git/lng/odp.gitodp.git; \
fi
- cd odp.git; make libs_install CFLAGS="-fPIC"
CC=$(CROSS_COMPILE)-gcc
+ cd odp.git; make libs_install CFLAGS="-fPIC"
distclean:
rm -rf odp.git
@@ -15,7 +15,7 @@ WIRESHARK_VERSION=wireshark-1.8.9
ODP_DIR ?= $(PWD)/../odp.git
-HOST ?= `$(CROSS_COMPILE)-gcc -dumpmachine`
+HOST ?= `$(CC) -dumpmachine`
.PHONY: all
all: libpcap tcpdump
@@ -9,7 +9,7 @@ OPENVPN_VERSION=cd6555e0159987ef264789f4976053ce2aa5fc20
ODP_DIR ?= $(PWD)/../odp.git
-HOST ?= `$(CROSS_COMPILE)-gcc -dumpmachine`
+HOST ?= `$(CC) -dumpmachine`
.PHONY: all
all: openvpn odp_ipcd