File: libperl-dev.README.cross

package info (click to toggle)
perl 5.24.1-3+deb9u5
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 103,716 kB
  • sloc: perl: 559,611; ansic: 293,886; sh: 67,316; pascal: 7,632; cpp: 3,895; makefile: 2,436; xml: 2,410; yacc: 989; sed: 6; lisp: 1
file content (23 lines) | stat: -rw-r--r-- 892 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Cross building packages that link against libperl

Since version 5.22.1-7, libperl-dev no longer depends on perl of the
same architecture.  This should make it possible to cross build packages
build depending on libperl-dev, by replacing ExtUtils::Embed calls like

 perl -MExtUtils::Embed -e ccopts
 perl -MExtUtils::Embed -e ldopts

with something like

 perl -I /usr/lib/$(dpkg-architecture -qDEB_HOST_MULTIARCH)/perl/cross-config-$(perl -MConfig -e 'print $Config{version}') -MExtUtils::Embed [...]

so that Config.pm for the host (target) architecture gets loaded and
provides the right header and linker paths.

This support is currently very much experimental. Success or failure
reports are welcome at <perl@packages.debian.org>.

See https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=813384#10 for more
information.

 -- Niko Tyni <ntyni@debian.org>  Sat, 06 Feb 2016 15:00:12 +0200