The desicion was easily made and so did the problems occur. Even before I started to write code! To be more precisely the first thing i struggled with was the Makefile.. I used the sample file from here which is working with multiple directories but I always got this strange error message:
/usr/bin/ld: can't locate file for: -lcrt0.oI didn't have any clue where crt0.o comes from nor what it is (well, i still don't know actually) but I knew that -l has something to do with libraries. While checking the Makefiles again I discovered that two modules include a library with the -static argument. I looked into man gcc once again and finally got surprised:
collect2: ld returned 1 exit status
-staticAll I had to do now was changing the first line to the second.
On systems that support dynamic linking, this prevents
linking with the shared libraries. On other systems,
this option has no effect.
This option will not work on Mac OS X unless all
libraries (including libgcc.a) have also been compiled
with -static. Since neither a static version of
libSystem.dylib nor crt0.o are provided, this option is
not useful to most people.
# LDFLAGS = -static -L$(LIBSDIR)Conclusion: build system works fine but nothing's really there to be built :)
LDFLAGS = -L$(LIBSDIR)
0 Comment(s)
Jump to comment form | trackback uri