Thorsten Köster
|
Generated makefile for building static libraries is broken
|
Thorsten Köster
11/03/2008 3:40 AM
post15842
|
Generated makefile for building static libraries is broken
Hi,
I just downloaded the QNX Software Development Platform 6.4.0 and ran straight into a bug:
When building a static library using the Gnu Make Builder, no object files are built and the library is essentially
empty. This behavior is obviously due to an omission in the generated top-level makefile. The rule for making the
library file reads (echo's omitted for clarity):
libsomething.a:
qcc -A libsomething.a -V4.2.4,gcc_ntox86_cpp -w1
Compare this to the rule generated for shared libraries:
libsomething.so: $(OBJS) $(USER_OBJS)
qcc -o libsomething.so $(OBJS) $(USER_OBJS) $(LIBS) -V4.2.4,gcc_ntox86_cpp -w1 -lang-c++ -shared
Clearly, the prerequisites are missing in both the rule and the command. Since I depend on a makefile infrastructure, a
bug fix / workaround would be highly appreciated. And sorry, a QNX project is no viable workaround for me, since the
makefiles should remain somewhat human-readable. :-)
Thorsten
|
|
|