[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#782039: dpkg-buildflags should ship CC variable for multi-arch cross-compiling, so that we can support clang



Package: dpkg
Version: 1.17.24
Severity: wishlist

clang is a native compiler, and so the gcc way of naming cross-compilers is cumbersome as it would require the clang
package to ship many symlinks. instead the architecture is listed with -target
CC="clang -target $(DEB_HOST_GNU_TYPE)"

Not all software uses autoconf, and also the autoconf auto-detection doesn't work with musl-linux-(amd64|armhf|...),
which doesn't require a differn't gcc, but simply a spec file.

Thanks,

Shawn
-- System Information:
Debian Release: 8.0
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386, armhf, armel, musl-linux-amd64

Kernel: Linux 3.19.0-trunk-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages dpkg depends on:
ii  libbz2-1.0   1.0.6-7+b3
ii  libc6        2.21-0experimental0
ii  liblzma5     5.1.1alpha+20120614-2+b3
ii  libselinux1  2.3-2
ii  tar          1.27.1-2+b1
ih  zlib1g       1:1.2.8.dfsg-2+b1

dpkg recommends no packages.

Versions of packages dpkg suggests:
ii  apt  1.1~exp8

-- no debconf information


Reply to: