summaryrefslogtreecommitdiff
path: root/scripts/mk
diff options
context:
space:
mode:
authorGuillem Jover <guillem@debian.org>2014-04-13 06:56:44 +0200
committerGuillem Jover <guillem@debian.org>2014-04-21 16:54:09 +0200
commitd3611d0d83151f0405506419111bc9cc4066af68 (patch)
tree42a0244861507a2823bfa9ff322033b9118d6aa8 /scripts/mk
parentd82f11f1e7205183b19cf3983a2ce90d980119ad (diff)
downloaddpkg-d3611d0d83151f0405506419111bc9cc4066af68.tar.gz
dpkg-buildflags: Add support for FCFLAGS, OBJCFLAGS and OBJCXXFLAGS
Add default values in Debian and derivatives for these flags. Distinguish FFLAGS from FCFLAGS by mentioning that the former is for the Fortran 77 compiler and the latter for the Fortran 9x compiler. Closes: #744326
Diffstat (limited to 'scripts/mk')
-rw-r--r--scripts/mk/buildflags.mk8
1 files changed, 6 insertions, 2 deletions
diff --git a/scripts/mk/buildflags.mk b/scripts/mk/buildflags.mk
index 1c63070fe..2bb0f2679 100644
--- a/scripts/mk/buildflags.mk
+++ b/scripts/mk/buildflags.mk
@@ -3,8 +3,11 @@
# CFLAGS: flags for the C compiler
# CPPFLAGS: flags for the C preprocessor
# CXXFLAGS: flags for the C++ compiler
+# OBJCFLAGS: flags for the Objective C compiler
+# OBJCXXFLAGS: flags for the Objective C++ compiler
# GCJFLAGS: flags for the GNU Java compiler
-# FFLAGS: flags for the Fortran compiler
+# FFLAGS: flags for the Fortran 77 compiler
+# FCFLAGS: flags for the Fortran 9x compiler
# LDFLAGS: flags for the linker
#
# You can also export them in the environment by setting
@@ -15,7 +18,8 @@
dpkg_late_eval ?= $(or $(value DPKG_CACHE_$(1)),$(eval DPKG_CACHE_$(1) := $(shell $(2)))$(value DPKG_CACHE_$(1)))
-DPKG_BUILDFLAGS_LIST = CFLAGS CPPFLAGS CXXFLAGS GCJFLAGS FFLAGS LDFLAGS
+DPKG_BUILDFLAGS_LIST = CFLAGS CPPFLAGS CXXFLAGS OBJCFLAGS OBJCXXFLAGS \
+ GCJFLAGS FFLAGS FCFLAGS LDFLAGS
define dpkg_buildflags_export_envvar
ifdef $(1)