diff options
author | petere <petere@0070b5ef-2f16-0410-befa-9a02bd1d6ddb> | 2006-07-15 16:35:08 +0000 |
---|---|---|
committer | petere <petere@0070b5ef-2f16-0410-befa-9a02bd1d6ddb> | 2006-07-15 16:35:08 +0000 |
commit | 29e1ae7bc393988bbffab5ca857851ec0e7c5df0 (patch) | |
tree | 787661a0abf5b55ff13881ee78637cd546031175 /debian/rules | |
parent | 4ea9a40378203ef474c73509966d2088ddc83d1e (diff) | |
download | ntp-29e1ae7bc393988bbffab5ca857851ec0e7c5df0.tar.gz |
* Support DEB_BUILD_OPTIONS=noopt
* Compile with -fno-strict-aliasing (closes: #316304)
git-svn-id: svn://svn.debian.org/pkg-ntp/ntp/trunk@49 0070b5ef-2f16-0410-befa-9a02bd1d6ddb
Diffstat (limited to 'debian/rules')
-rwxr-xr-x | debian/rules | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/debian/rules b/debian/rules index c137da0..4ffd9b4 100755 --- a/debian/rules +++ b/debian/rules @@ -8,10 +8,18 @@ export AUTOCONF = : autoconf export AUTOMAKE = : automake export AUTOHEADER = : autoheader +CFLAGS = -g -fno-strict-aliasing +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) +CFLAGS += -O0 +else +CFLAGS += -O2 +endif + config: patch config.status config.status: $(QUILT_STAMPFN) dh_testdir - ./configure --prefix=/usr \ + ./configure CFLAGS='$(CFLAGS)' \ + --prefix=/usr \ --enable-all-clocks --enable-parse-clocks --enable-SHM \ --disable-debugging --sysconfdir=/var/lib/ntp \ --disable-errorcache --with-sntp=no \ |