summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Lidén Borell <samuel@slbdata.se>2010-01-02 02:43:21 +0100
committerSamuel Lidén Borell <samuel@slbdata.se>2010-01-02 22:30:16 +0100
commit12fb4966cc3b1474199bc05f55d6ddb13bd653d2 (patch)
tree6e877b63e4d6f36123c0ea19058ca2c6fa5f75b9
parent35a76bb7dae2a74a6fb83c7e9cf0011b1b95992c (diff)
downloadfribid-12fb4966cc3b1474199bc05f55d6ddb13bd653d2.tar.gz
fribid-12fb4966cc3b1474199bc05f55d6ddb13bd653d2.tar.bz2
fribid-12fb4966cc3b1474199bc05f55d6ddb13bd653d2.zip
Added support for a few debian build flags/variables
-rwxr-xr-xdebian/rules13
1 files changed, 13 insertions, 0 deletions
diff --git a/debian/rules b/debian/rules
index 299dfec..618c035 100755
--- a/debian/rules
+++ b/debian/rules
@@ -4,6 +4,19 @@
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
+# Support cross-compiling
+ifneq ($(DEB_HOST_GNU_SYSTEM),$(DEB_BUILD_GNU_SYSTEM))
+ CC=$(DEB_HOST_GNU_SYSTEM)-gcc
+endif
+
+# Disable optimizations if "noopt" is set
+ifneq ($(findstring noopt,$(DEB_BUILD_OPTIONS)),)
+ CFLAGS += -O0 -g
+else
+ CFLAGS += -O2 -g
+endif
+
+
configure:
configure-stamp:
dh_testdir