summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2015-10-17 21:19:21 +0300
committerIgor Pashev <pashev.igor@gmail.com>2015-10-17 21:19:21 +0300
commitc6f830d96cdc0ff88aeb8686a00e4f8238482b84 (patch)
treeb596c433d0d26fdc40ed6817972530ad1300be79
parent36e2ddbfb6d91413783b84b94516cb8f62eddace (diff)
downloaddh-illumos-c6f830d96cdc0ff88aeb8686a00e4f8238482b84.tar.gz
Unset CPPFLAGS in env.sh
-rwxr-xr-xdh_illumos_gate4
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