Jun 4, 2010

Building Distributed Programs Using GCC

In the case of distributed computing, a program is build (into a binary) and distributed on multiple computers for running. It is often that we do not want to install libraries depended by our program on every working computers. Instead, we can instruct GCC to link static libraries by setting the environment variable:
LDFLAGS=-static -static-libgcc

I have tried this method under Cygwin and Ubuntu Linux. However, if I do this under Darwin (Mac OS X 10.6 Snow Leopard), the linker complains that
ld: library not found for -lcrt0.o
In this Technical Q&A, Apple explains that they want to make Mac OS X upgrading easier, so they do not provide crt0.o to encourage dynamic linking.

2 comments:


  1. I appreciated looking at your article. Very wonderful reveal. I would like to twit this on my followers. Many thanks!

    SS Total Anova Calculator
    derivative calculator
    Interval Calculator
    edublackboards

    ReplyDelete
  2. This is the one of the most important information for me. And I am feeling glad reading your article. The article is really excellent ?


    pdusu ba 3rd year result 2022 subject wise

    ReplyDelete