This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
| Other format: | [Raw text] | |
Made a small test:
Three objects (from main.cpp main2.cpp main3.cpp), one function each, each calls the other in chain, and both all -lc functions (printf).
Linked with:
${OUTFILE}.exe : $(OBJECTS) Makefile $(CXX) -v main.o main2.o -nostdlib -r -o partial.o $(CXX) -v partial.o main3.o -static $(LDFLAGS) -o ${OUTFILE}.exe
Tested with runtime as dll and with -static. And it ran ok.
Cheers Nick
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |