Author: Armin Rigo <[email protected]>
Branch:
Changeset: r74505:66fa58469820
Date: 2014-11-13 15:56 +0100
http://bitbucket.org/pypy/pypy/changeset/66fa58469820/
Log: We must also add -fPIC here (building --shared with shadowstack)
diff --git a/rpython/translator/c/genc.py b/rpython/translator/c/genc.py
--- a/rpython/translator/c/genc.py
+++ b/rpython/translator/c/genc.py
@@ -466,7 +466,10 @@
if self.translator.platform.name == 'msvc':
mk.definition('DEBUGFLAGS', '-MD -Zi')
else:
- mk.definition('DEBUGFLAGS', '-O1 -g')
+ if self.config.translation.shared:
+ mk.definition('DEBUGFLAGS', '-O1 -g -fPIC')
+ else:
+ mk.definition('DEBUGFLAGS', '-O1 -g')
if self.translator.platform.name == 'msvc':
mk.rule('debug_target', 'debugmode_$(DEFAULT_TARGET)', 'rem')
else:
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit