# HG changeset patch # User siretart # Date 1281205411 0 # Node ID 4b6dc3f9b281323bd2234c8ca9667af0a08170c3 # Parent 4551864b8e69505cf53d0152f565597b07ce7790 restore functionality to be able to pass custom configure flags or override the used compiler diff -r 4551864b8e69 -r 4b6dc3f9b281 README --- a/README Sat Aug 07 18:10:15 2010 +0000 +++ b/README Sat Aug 07 18:23:31 2010 +0000 @@ -135,8 +135,12 @@ debian/daily-build.sh -b -If you want to modify options to configure, please adjust the file -debian/rules to your needs. +You can also pass some variables to the Makefile. For example, if you +want to compile with gcc 3.4 even if it's not the default compiler, or +pass extra configure options you would use: + + CC=gcc-3.4 DEB_EXTRA_CONFIGURE_FLAGS="--disable-libdvdcss-internal" debian/daily-build.sh -b + To clean up the source tree run the following command: diff -r 4551864b8e69 -r 4b6dc3f9b281 debian/rules --- a/debian/rules Sat Aug 07 18:10:15 2010 +0000 +++ b/debian/rules Sat Aug 07 18:23:31 2010 +0000 @@ -83,9 +83,9 @@ CONFIGURE_FLAGS += --enable-mga --enable-3dfx --enable-tdfxfb endif -# See http://wiki.debian.org/Teams/Dpkg/DebianRules; #465282 and -# https://wiki.ubuntu.com/DistCompilerFlags -CLEAN_ENV=env -u CFLAGS -u CPPFLAGS -u LDFLAGS -u FFLAGS -u CXXFLAGS +ifneq (,$(DEB_EXTRA_CONFIGURE_FLAGS)) + CONFIGURE_FLAGS += $(DEB_EXTRA_CONFIGURE_FLAGS) +endif build: build-arch build-indep