diff options
author | Igor Pashev <pashev.igor@gmail.com> | 2015-10-17 21:19:21 +0300 |
---|---|---|
committer | Igor Pashev <pashev.igor@gmail.com> | 2015-10-17 21:19:21 +0300 |
commit | c6f830d96cdc0ff88aeb8686a00e4f8238482b84 (patch) | |
tree | b596c433d0d26fdc40ed6817972530ad1300be79 | |
parent | 36e2ddbfb6d91413783b84b94516cb8f62eddace (diff) | |
download | dh-illumos-c6f830d96cdc0ff88aeb8686a00e4f8238482b84.tar.gz |
Unset CPPFLAGS in env.sh
-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 |