From e783b5c0fd9d30b90207ff67f1a9d705c18f6113 Mon Sep 17 00:00:00 2001 From: Igor Pashev Date: Sun, 18 Oct 2015 11:05:50 +0300 Subject: Unset LDFLAGS (for sure) and CFLAGS (just in case) --- dh_illumos_gate | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/dh_illumos_gate b/dh_illumos_gate index 76a681e..e639b1c 100755 --- a/dh_illumos_gate +++ b/dh_illumos_gate @@ -485,8 +485,9 @@ Define C to be C. Export all C variables (using C) to make them available from makefiles. -Unsets C. Many related variables are unset by F, -but this one. It breaks build. +Unsets C, C, C. +Many related variables are unset by F, +but these ones. They break build. =cut @@ -527,7 +528,9 @@ if ( open( ENV, '>', $env ) ) { print ENV "export DEB_USRLIBDIR_32='/$usrlibdir32'\n"; print ENV "export DEB_LIBDIR_64='/$libdir64'\n"; print ENV "export DEB_USRLIBDIR_64='/$usrlibdir64'\n"; + print ENV "unset CFLAGS\n"; print ENV "unset CPPFLAGS\n"; + print ENV "unset LDFLAGS\n"; print ENV "export LDLIBS32=\"-L\$ROOT/\$DEB_LIBDIR_32 -L\$ROOT/\$DEB_USRLIBDIR_32\"\n"; print ENV @@ -556,6 +559,7 @@ with option C<--without-ctf>. my $bldenv_sh_orig = $dh{DESTDIR} . '/usr/src/tools/scripts/bldenv.sh'; my $bldenv_sh = $dh{DESTDIR} . '/usr/bldenv.sh'; + if ( -f $bldenv_sh_orig ) { doit( 'cp', '-f', $bldenv_sh_orig, $bldenv_sh ); doit( -- cgit v1.2.3