Skip to content

Instantly share code, notes, and snippets.

@BtbN
Created November 13, 2017 22:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BtbN/0c63c1ba4691537bf04203922f8a19bd to your computer and use it in GitHub Desktop.
Save BtbN/0c63c1ba4691537bf04203922f8a19bd to your computer and use it in GitHub Desktop.
stdin
configure | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/configure b/configure
index 4418352d30..c8ca51e4e5 100755
--- a/configure
+++ b/configure
@@ -6485,6 +6485,7 @@ flatten_extralibs(){
list_name=$1
eval list=\$${1}
for entry in $list; do
+ pushvar $entry
entry_copy=$entry
resolve entry_copy
append nested_entries $(filter '*_extralibs' $entry_copy)
@@ -6497,6 +6498,10 @@ flatten_extralibs(){
if test -n "$(filter '*_extralibs' $nested_entries)"; then
flatten_extralibs $list_name
fi
+
+ for entry in $list; do
+ popvar $entry
+ done
}
for linkunit in $LIBRARY_LIST; do
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment