summaryrefslogtreecommitdiff
path: root/dh_illumos_gate
diff options
context:
space:
mode:
Diffstat (limited to 'dh_illumos_gate')
-rwxr-xr-xdh_illumos_gate11
1 files changed, 10 insertions, 1 deletions
diff --git a/dh_illumos_gate b/dh_illumos_gate
index 84ceaf4..72affcd 100755
--- a/dh_illumos_gate
+++ b/dh_illumos_gate
@@ -186,6 +186,13 @@ Delete (set to empty) variable C<MAPFILE.LEX>, cause we are not
using shared lex library (F<libl.so.1>), but static Flex
library (libl.a).
+In variables C<OFFSETS_CREATE> and C<OFFSETS_CREATE64> replace
+variables C<$(CTFSTABS)> and C<$(CTFCONVERT)> with explicit
+F<ctfstabs> and F<ctfconvert>, because those variables are
+empty when building without CTF, but creating offsets
+really requires CTF data. This is used when compiling libc and
+illumos kernel.
+
=cut
my $multiarch = `dpkg-architecture -qDEB_HOST_MULTIARCH`;
@@ -215,7 +222,7 @@ if (-f $Makefile_master) {
doit('cp', '-f', $Makefile_master, $Makefile_master_orig);
}
- # Be carefull with modern CPP:
+ # Be careful with modern CPP:
my $i386_undef = '-Uamd64 -U__amd64 -U__amd64__ -U__x86_64__ -U__x86_64 -U_LP64';
doit('sed', '-r', '-i', '
/^INS\.(file|dir)/ s, -s,,;
@@ -224,6 +231,8 @@ if (-f $Makefile_master) {
/^i386_AS_XARCH\s*=/s,$, ' . $i386_undef . ',;
/^COMPILE\.s/s,$, $($(MACH)_AS_XARCH),;
/^MAPFILE.LEX/d;
+ /^OFFSETS_CREATE/ s,\$\(CTFSTABS\),ctfstabs,;
+ /^OFFSETS_CREATE/ s,\$\(CTFCONVERT\),ctfconvert,;
', $Makefile_master
);
}