Skip to content
Browse files

Add -fPIC and -mimpure-text

This allows discount to compile in the face of persnickety compilers.
  • Loading branch information...
1 parent 15e40b0 commit c003026e6282441ff2175bc80790f95dbeaba90f @isaacs committed Apr 15, 2011
Showing with 3 additions and 1 deletion.
  1. +3 −1 wscript
View
4 wscript
@@ -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 c003026

Please sign in to comment.
Something went wrong with that request. Please try again.