Permalink
Browse files

Add -fPIC and -mimpure-text

This allows discount to compile in the face of persnickety compilers.

Signed-off-by: Tj Holowaychuk <tj@vision-media.ca>
  • Loading branch information...
1 parent 15e40b0 commit cd359acb6f32c62fbd50b14f67fcc6b0d484981e @isaacs isaacs committed with Apr 15, 2011
Showing with 3 additions and 1 deletion.
  1. +3 −1 wscript
View
@@ -16,6 +16,8 @@ def configure(conf):
def build(bld):
obj = bld.new_task_gen('cxx', 'shlib', 'node_addon')
+ obj.linkflags = ["-lmarkdown", "-mimpure-text"]
obj.target = 'markdown'
obj.source = 'src/markdown.cc'
- obj.uselib = 'DISCOUNT'
+ obj.uselib = 'DISCOUNT'
+ obj.cxxflags = ["-fPIC"]

0 comments on commit cd359ac

Please sign in to comment.