Package: dpkg-dev
Version: 1.16.9~bpo60+1
Severity: normal
Tags: patch

Currently it is not possible to retrieve hardening flags when doing gcj 
compilation (eg. dh_nativejava call).

Instead one has to do:

# hardening
CFLAGS:=$(shell dpkg-buildflags --get CFLAGS)
LDFLAGS:=$(shell dpkg-buildflags --get LDFLAGS)

# pass compile option to gcj:
# CPPFLAGS is not use, since leads to:
# gcj: can't specify '-D' without '--main'
export AOT_GCJFLAGS=$(CFLAGS)
export AOT_LDFLAGS=$(LDFLAGS)


which leads to compilation warning:

/usr/bin/gcj -c -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat 
-Werror=format-security -fsource-filename=/tmp/filephB4aY -g -O2 -fPIC 
-findirect-dispatch -fjni saxon-jdom-6.5.5.jar.1.jar -o saxon-jdom-6.5.5.jar.1.o
/usr/bin/gcj-dbtool -n saxon-jdom-6.5.5.jar.db 64
jc1: warning: command line option "-Wformat" is valid for C/C++/ObjC/ObjC++ but 
not for Java


It would be nice to have a JFLAGS which contains CFLAGS, without -Wformat

Thanks

-- System Information:
Debian Release: 6.0.7
  APT prefers oldstable-updates
  APT policy: (500, 'oldstable-updates'), (500, 'oldstable'), (500, 'stable'), 
(200, 'testing'), (100, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-0.bpo.4-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages dpkg-dev depends on:
ii  base-files              6.0squeeze7      Debian base system miscellaneous f
ii  binutils                2.20.1-16        The GNU assembler, linker and bina
ii  bzip2                   1.0.5-6+squeeze1 high-quality block-sorting file co
ii  libdpkg-perl            1.16.9~bpo60+1   Dpkg perl modules
ii  make                    3.81-8           An utility for Directing compilati
ii  patch                   2.6-2            Apply a diff file to an original
ii  xz-utils                5.0.0-2          XZ-format compression utilities

Versions of packages dpkg-dev recommends:
ii  build-essential        11.5              Informational list of build-essent
ii  fakeroot               1.14.4-1          Gives a fake root environment
ii  gcc [c-compiler]       4:4.4.5-1         The GNU C compiler
ii  gcc-4.3 [c-compiler]   4.3.5-4           The GNU C compiler
ii  gcc-4.4 [c-compiler]   4.4.5-8           The GNU C compiler
ii  gnupg                  1.4.10-4+squeeze1 GNU privacy guard - a free PGP rep
ii  gpgv                   1.4.10-4+squeeze1 GNU privacy guard - signature veri
ii  libalgorithm-merge-per 0.08-2            Perl module for three-way merge of
ii  tcc [c-compiler]       0.9.25-5          the smallest ANSI C compiler

Versions of packages dpkg-dev suggests:
ii  debian-keyring                2010.12.29 GnuPG keys of Debian Developers

-- no debconf information


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to