Created
March 15, 2011 22:29
-
-
Save etrepum/871644 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff -r a688b3d51be2 pypy/translator/platform/posix.py | |
--- a/pypy/translator/platform/posix.py Tue Mar 15 15:05:44 2011 -0400 | |
+++ b/pypy/translator/platform/posix.py Tue Mar 15 18:28:27 2011 -0400 | |
@@ -139,6 +139,7 @@ | |
('CFLAGS', cflags), | |
('CFLAGSEXTRA', list(eci.compile_extra)), | |
('LDFLAGS', linkflags), | |
+ ('LDFLAGS_LINK', list(self.link_flags)), | |
('LDFLAGSEXTRA', list(eci.link_extra)), | |
('CC', self.cc), | |
('CC_LINK', eci.use_cpp_linker and 'g++' or '$(CC)'), | |
@@ -165,7 +166,7 @@ | |
'int main(int argc, char* argv[]) ' | |
'{ return $(PYPY_MAIN_FUNCTION)(argc, argv); }" > $@') | |
m.rule('$(DEFAULT_TARGET)', ['$(TARGET)', 'main.o'], | |
- '$(CC_LINK) main.o -L. -l$(SHARED_IMPORT_LIB) -o $@') | |
+ '$(CC_LINK) $(LDFLAGS_LINK) main.o -L. -l$(SHARED_IMPORT_LIB) -o $@') | |
return m | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment