summaryrefslogtreecommitdiff
path: root/scripts/mk
diff options
context:
space:
mode:
authorGuillem Jover <guillem@debian.org>2013-06-16 06:37:32 +0200
committerGuillem Jover <guillem@debian.org>2013-06-22 05:19:25 +0200
commit325dd5f210a5b2e578814303a58b006a0516b565 (patch)
tree93b6b77855090dec475b39e710057bd32dfece1a /scripts/mk
parentacffa74f55afe0b853a6711744a12be42e215480 (diff)
downloaddpkg-325dd5f210a5b2e578814303a58b006a0516b565.tar.gz
dpkg-buildflags: Add GCJFLAGS support
This adds default flags for the GNU Compiler for Java, and the supported hardened flags. We do not name the variable JFLAGS nor JAVAFLAGS, to make it very clear these are not flags for javac, they are only for GCJ; so we use the automake variable name as existing precedent. Closes: #708375
Diffstat (limited to 'scripts/mk')
-rw-r--r--scripts/mk/buildflags.mk3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/mk/buildflags.mk b/scripts/mk/buildflags.mk
index 8f0f215f8..1c63070fe 100644
--- a/scripts/mk/buildflags.mk
+++ b/scripts/mk/buildflags.mk
@@ -3,6 +3,7 @@
# CFLAGS: flags for the C compiler
# CPPFLAGS: flags for the C preprocessor
# CXXFLAGS: flags for the C++ compiler
+# GCJFLAGS: flags for the GNU Java compiler
# FFLAGS: flags for the Fortran compiler
# LDFLAGS: flags for the linker
#
@@ -14,7 +15,7 @@
dpkg_late_eval ?= $(or $(value DPKG_CACHE_$(1)),$(eval DPKG_CACHE_$(1) := $(shell $(2)))$(value DPKG_CACHE_$(1)))
-DPKG_BUILDFLAGS_LIST = CFLAGS CPPFLAGS CXXFLAGS FFLAGS LDFLAGS
+DPKG_BUILDFLAGS_LIST = CFLAGS CPPFLAGS CXXFLAGS GCJFLAGS FFLAGS LDFLAGS
define dpkg_buildflags_export_envvar
ifdef $(1)