diff options
-rwxr-xr-x | dh_illumos_gate | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/dh_illumos_gate b/dh_illumos_gate index d5492b0..d39b2b7 100755 --- a/dh_illumos_gate +++ b/dh_illumos_gate @@ -477,6 +477,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. + =cut chdir $dh{DESTDIR}; @@ -511,6 +514,7 @@ 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 CPPFLAGS\n"; print ENV "export LDLIBS32=\"-L\$ROOT/\$DEB_LIBDIR_32 -L\$ROOT/\$DEB_USRLIBDIR_32\"\n"; print ENV |