File: fix-compilation.patch

package info (click to toggle)
libsass-python 0.12.3-2
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 460 kB
  • ctags: 460
  • sloc: python: 2,356; cpp: 598; makefile: 173
file content (19 lines) | stat: -rw-r--r-- 661 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Taking into account CPPFLAGS for hardening.
Also, this package more or less expects libsass locally (when downloading
from pypi, source of libsass is included. So fixing some path and linking.
--- a/setup.py
+++ b/setup.py
@@ -140,11 +140,12 @@
         link_flags = ['-fPIC', '-lc++']
     else:
         link_flags = ['-fPIC', '-lstdc++']
+    link_flags.append('-lsass')
 
 sass_extension = Extension(
     '_sass',
     sources,
-    include_dirs=[os.path.join('.', 'libsass', 'include')],
+    #include_dirs=[os.path.join('.', 'libsass', 'include')],
     depends=headers,
     extra_compile_args=flags + [version_define],
     extra_link_args=link_flags,