]> granicus.if.org Git - libvpx/commitdiff
configure: pass original arguments through to make dist
authorJohn Koleszar <jkoleszar@google.com>
Tue, 22 Jun 2010 13:53:23 +0000 (09:53 -0400)
committerJohn Koleszar <jkoleszar@google.com>
Tue, 27 Jul 2010 18:32:07 +0000 (14:32 -0400)
When running configure automatically through the make dist target,
reuse the arguments passed to the original configure command.

Change-Id: I40e5b8384d6485a565b91e6d2356d5bc9c4c5928

build/make/Makefile
configure

index 20a48671eaf67d35b437a25cdcac6d98f7448456..5011ce36dbcb84b59b8150af4baa3c72894cde77 100755 (executable)
@@ -39,13 +39,8 @@ dist:
        @if [ -d "$(DIST_DIR)/src" ]; then \
             mkdir -p "$(DIST_DIR)/build"; \
             cd "$(DIST_DIR)/build"; \
-            if [ "$(TGT_CC)" = "rvct" ] ; then \
-                               echo "../src/configure --target=$(TOOLCHAIN) --libc=$(ALT_LIBC)"; \
-                               ../src/configure --target=$(TOOLCHAIN) --libc=$(ALT_LIBC); \
-                       else \
-                               echo "../src/configure --target=$(TOOLCHAIN)"; \
-                               ../src/configure --target=$(TOOLCHAIN); \
-                       fi; \
+            echo "Rerunning configure $(CONFIGURE_ARGS)"; \
+            ../src/configure $(CONFIGURE_ARGS); \
             $(if $(filter vs%,$(TGT_CC)),make NO_LAUNCH_DEVENV=1;) \
         fi
        @if [ -d "$(DIST_DIR)" ]; then \
index 9be0624fb4dd4ac8405af9463555f50d3ab7bdb9..5c908d4b31a15d52e408121b2cf5489b463f5055 100755 (executable)
--- a/configure
+++ b/configure
@@ -385,6 +385,7 @@ VERSION_MAJOR=${VERSION_MAJOR}
 VERSION_MINOR=${VERSION_MINOR}
 VERSION_PATCH=${VERSION_PATCH}
 
+CONFIGURE_ARGS=${CONFIGURE_ARGS}
 EOF
     enabled child || echo "CONFIGURE_ARGS?=${CONFIGURE_ARGS}" >> config.mk