Le 13 févr. 2014 à 22:21, Евгений Ростовцев a écrit : > 2014-02-14 2:03 GMT+07:00, Quentin Mathé <[email protected]>: >> GNUstep Make should pass all the correct libraries. It's possible GNUstep >> Make is not configured correctly if you have to do that. > > Some libraries I need for linking (-lm, -lX11), but it's not good idea > to put everything into GNUstep Make.
Could you tell me precisely for which modules this is needed? GNUstep Base links the math library, at least on Linux, so -lm shouldn't be needed usually. For platforms where the linker doesn't automatically resolve symbols for libraries we depend on indirectly, such as the math library, we try to pass these GNUstep Base or GUI dependencies with variables provided by GNUstep Make to do so. For example: LIBRARIES_DEPEND_UPON += $(FND_LIBS) $(OBJC_LIBS) $(SYSTEM_LIBS) $(GUI_LIBS) For the X11 library, this library is linked by GNUstep Back bundle, so unless you use some X11 API, linking it shouldn't be needed either. For example, in XWindowServerKit, we use the X11 API, so -lX11 is explicitly passed in the GNUmakefile: XWindowServerKit_LIBRARIES_DEPEND_UPON = -lX11 >> For the Build directory, if 'make' is invoked inside the root Etoile >> directory or some subdirectory, etoile.make passes the Build directory among >> the linking flags to every project that get compiled. > > This mechanism don't work for me, so I add TOPDIR. The Build directory appears to be correctly passed as -I/usr/src/RPM/BUILD/gnustep-Etoile-0.4.2/Build in the compilation messages. Could you show me the content of this Build directory, after compiling everything? Cheers, Quentin. _______________________________________________ Etoile-dev mailing list [email protected] https://mail.gna.org/listinfo/etoile-dev
