Commit 604abd02 authored by Luca Barbato's avatar Luca Barbato

configure: Provide an option to override the environment

Useful to have `make config` work with custom pkgconf path.
Signed-off-by: 's avatarLuca Barbato <lu_zero@gentoo.org>
parent 06db4552
...@@ -263,6 +263,7 @@ Toolchain options: ...@@ -263,6 +263,7 @@ Toolchain options:
--enable-pic build position-independent code --enable-pic build position-independent code
--enable-thumb compile for Thumb instruction set --enable-thumb compile for Thumb instruction set
--enable-lto use link-time optimization --enable-lto use link-time optimization
--env="ENV=override" override the environment variables
Advanced options (experts only): Advanced options (experts only):
--malloc-prefix=PREFIX prefix malloc and related names with PREFIX --malloc-prefix=PREFIX prefix malloc and related names with PREFIX
...@@ -1668,6 +1669,7 @@ CMDLINE_SET=" ...@@ -1668,6 +1669,7 @@ CMDLINE_SET="
cpu cpu
cross_prefix cross_prefix
dep_cc dep_cc
env
extra_version extra_version
host_cc host_cc
host_cflags host_cflags
...@@ -2540,6 +2542,10 @@ for opt do ...@@ -2540,6 +2542,10 @@ for opt do
esac esac
done done
for e in "$env"; do
eval "export $e"
done
disabled logging && logfile=/dev/null disabled logging && logfile=/dev/null
echo "# $0 $LIBAV_CONFIGURATION" > $logfile echo "# $0 $LIBAV_CONFIGURATION" > $logfile
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment