Skip to content

Commit 9eda162

Browse files
committed
build: fixup configure to not export anything
1 parent 5e708d3 commit 9eda162

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

configure.ac

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -264,15 +264,13 @@ case $host in
264264
qt5_prefix=`$BREW --prefix qt5 2>/dev/null`
265265
if test x$openssl_prefix != x; then
266266
PKG_CONFIG_PATH="$openssl_prefix/lib/pkgconfig:$PKG_CONFIG_PATH"
267-
export PKG_CONFIG_PATH
268267
fi
269268
if test x$bdb_prefix != x; then
270269
CPPFLAGS="$CPPFLAGS -I$bdb_prefix/include"
271270
LIBS="$LIBS -L$bdb_prefix/lib"
272271
fi
273272
if test x$qt5_prefix != x; then
274273
PKG_CONFIG_PATH="$qt5_prefix/lib/pkgconfig:$PKG_CONFIG_PATH"
275-
export PKG_CONFIG_PATH
276274
fi
277275
fi
278276
else
@@ -828,8 +826,26 @@ AC_CONFIG_FILES([qa/pull-tester/tests-config.sh],[chmod +x qa/pull-tester/tests-
828826
dnl boost's m4 checks do something really nasty: they export these vars. As a
829827
dnl result, they leak into secp256k1's configure and crazy things happen.
830828
dnl Until this is fixed upstream and we've synced, we'll just un-export them.
829+
CPPFLAGS_TEMP="$CPPFLAGS"
831830
unset CPPFLAGS
831+
CPPFLAGS="$CPPFLAGS_TEMP"
832+
833+
LDFLAGS_TEMP="$LDFLAGS"
832834
unset LDFLAGS
835+
LDFLAGS="$LDFLAGS_TEMP"
836+
837+
LIBS_TEMP="$LIBS"
838+
unset LIBS
839+
LIBS="$LIBS_TEMP"
840+
841+
PKGCONFIG_PATH_TEMP="$PKG_CONFIG_PATH"
842+
unset PKG_CONFIG_PATH
843+
PKG_CONFIG_PATH="$PKGCONFIG_PATH_TEMP"
844+
845+
PKGCONFIG_LIBDIR_TEMP="$PKG_CONFIG_LIBDIR"
846+
unset PKG_CONFIG_LIBDIR
847+
PKG_CONFIG_LIBDIR="$PKGCONFIG_LIBDIR_TEMP"
848+
833849
ac_configure_args="${ac_configure_args} --disable-shared --with-pic"
834850
AC_CONFIG_SUBDIRS([src/secp256k1])
835851

0 commit comments

Comments
 (0)