From 062f101dc60e59559eb77a1573a566289d897a2b Mon Sep 17 00:00:00 2001 From: Igor Pashev Date: Wed, 17 Oct 2012 19:59:57 +0400 Subject: Define all DEB_* in illumos-gate/env.sh --- debian/changelog | 7 +++++++ dh_illumos_gate | 4 ++++ 2 files changed, 11 insertions(+) diff --git a/debian/changelog b/debian/changelog index eef85ec..ec19272 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +dh-illumos (10) UNRELEASED; urgency=low + + * Export all DEB_* variables into illumos-gate/env.sh + to make them available from makefiles. + + -- Igor Pashev Wed, 17 Oct 2012 19:57:30 +0400 + dh-illumos (9) unstable; urgency=low * Completely disable modifying comment section of ELFs, diff --git a/dh_illumos_gate b/dh_illumos_gate index 7620c05..12f2e78 100755 --- a/dh_illumos_gate +++ b/dh_illumos_gate @@ -221,6 +221,9 @@ expect default compiler to generate 32-bit code. Define C to be C. +Export all C variables (using C) +to make them available from makefiles. + =cut my $cwd = getcwd(); @@ -252,6 +255,7 @@ if (open (ENV, '>', $env)) { print ENV "export LDLIBS32=\"-YP,\$ROOT/\$DEB_LIBDIR_32:\$ROOT/\$DEB_USRLIBDIR_32\"\n"; print ENV "export LDLIBS64=\"-YP,\$ROOT/\$DEB_LIBDIR_64:\$ROOT/\$DEB_USRLIBDIR_64\"\n"; print ENV 'export LDLIBS_NATIVE="', ($bits == 64) ? '$LDLIBS64' : '$LDLIBS32', "\"\n"; + print ENV `dpkg-architecture -s`; close(ENV); } else { -- cgit v1.2.3