diff options
Diffstat (limited to 'dh_illumos_gate')
-rwxr-xr-x | dh_illumos_gate | 8 |
1 files 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<LEX> to be C</usr/bin/flex -l>. Export all C<DEB_*> variables (using C<dpkg-architecture -s>) to make them available from makefiles. -Unsets C<CPPFLAGS>. Many related variables are unset by F<bldenv.sh>, -but this one. It breaks build. +Unsets C<CPPFLAGS>, C<CFLAGS>, C<LDFLAGS>. +Many related variables are unset by F<bldenv.sh>, +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( |