Skip to content

Commit

Permalink
Hopefully the real fix for #6
Browse files Browse the repository at this point in the history
In the future I should not assume that a bug is a single commit. And also I
should read relevant manuals instead of assuming what options do.

-Wl is a linker option pass through, not a compile warning. Added info the
relevant config updates.

[#6]
  • Loading branch information
Paul Davis committed Apr 5, 2009
1 parent 83f81c4 commit 0f1b176
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,17 +39,20 @@ def nspr_config():
"include_dirs": [],
"library_dirs": [],
"libraries": [],
"extra_compile_args": []
"extra_compile_args": [],
"extra_link_args": []
}
prfx = {
"-I": ("include_dirs", 2),
"-L": ("library_dirs", 2),
"-l": ("libraries", 2),
"-W": ("extra_compile_args", 0)
"-Wl": ("extra_link_args", 0)
}
for b in bits:
name, trim = prfx[b[:2]]
ret[name].append(b[trim:])
for p in prfx:
if b.startswith(p):
name, trim = prfx[b[:2]]
ret[name].append(b[trim:])
return ret

def platform_config():
Expand Down

0 comments on commit 0f1b176

Please sign in to comment.