Skip to content

Instantly share code, notes, and snippets.

@etrepum
Created March 15, 2011 22:29
Show Gist options
  • Save etrepum/871644 to your computer and use it in GitHub Desktop.
Save etrepum/871644 to your computer and use it in GitHub Desktop.
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