~ubuntu-branches/ubuntu/natty/sunpinyin/natty

« back to all changes in this revision

Viewing changes to debian/patches/ignore-cflags-cxxflags-from-environment.patch

  • Committer: Bazaar Package Importer
  • Author(s): Zhengpeng Hou
  • Date: 2010-09-06 12:23:46 UTC
  • Revision ID: james.westby@ubuntu.com-20100906122346-ekmzay09hi2yknso
Tags: 2.0.2-0ubuntu1
Initial Ubuntu upload, LP: #631472, LP: #631459

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
If CXXFLAGS environment variable is set, sunpinyin will FTBFS.
 
2
temporary disable use CXXFLAGS environment variable.
 
3
--- a/SConstruct
 
4
+++ b/SConstruct
 
5
@@ -163,14 +163,6 @@
 
6
     print 'Warning: you\'ve set %s as C++ compiler' % os.environ['CXX']
 
7
     env['CXX']=os.environ['CXX']
 
8
 
 
9
-if 'CFLAGS' in os.environ:
 
10
-    print 'Warning: you\'ve set an external compiler flags for C.'
 
11
-    env['CFLAGS'] = os.environ['CFLAGS']
 
12
-
 
13
-if 'CXXFLAGS' in os.environ:
 
14
-    print 'Warning: you\'ve set an external compiler flags for C++.'
 
15
-    env['CXXFLAGS'] = os.environ['CXXFLAGS']
 
16
-
 
17
 if 'TAR' in os.environ:
 
18
     print 'Warning: you\'ve set %s as tar' % os.environ['TAR']
 
19
     env['TAR'] = os.environ['TAR']