Get podofo building on older compilers on linux

This commit is contained in:
Kovid Goyal 2019-08-28 15:32:12 +05:30
parent a5b5a6bc6e
commit bf199d6bfa
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
2 changed files with 4 additions and 1 deletions

View File

@ -53,6 +53,8 @@ class Extension(object):
if not self.needs_cxx and kwargs.get('needs_c99'): if not self.needs_cxx and kwargs.get('needs_c99'):
self.cflags.insert(0, '-std=c99') self.cflags.insert(0, '-std=c99')
if self.needs_cxx and kwargs.get('needs_c++11'):
self.cflags.insert(0, '-std=c++11')
self.ldflags = d['ldflags'] = kwargs.get('ldflags', []) self.ldflags = d['ldflags'] = kwargs.get('ldflags', [])
self.optional = d['options'] = kwargs.get('optional', False) self.optional = d['options'] = kwargs.get('optional', False)

View File

@ -121,7 +121,8 @@
"libraries": "podofo", "libraries": "podofo",
"lib_dirs": "!podofo_lib", "lib_dirs": "!podofo_lib",
"inc_dirs": "!podofo_inc", "inc_dirs": "!podofo_inc",
"error": "!podofo_error" "error": "!podofo_error",
"needs_c++11": true
}, },
{ {
"name": "pictureflow", "name": "pictureflow",