Hello Nicola, Fred and * I think we had talked about this just before/after the last -make release but I can't remember what came of it. Maybe you can review/approve this patch to add support for ADDITIONAL_NATIVE_LIB_DIRS which in conjunction with ADDITIONAL_NATIVE_LIBS will allow a transparent handling of flags in projects /using/ native libraries.
I'm not sure how this plays with non-flattened and/or GNUSTEP_BUILD_DIR but if if fails, it should fail in the same manor as the the gui/base tools should fail. Is it OK to commit this before the release? Cheers, David
Index: rules.make =================================================================== --- rules.make (Revision 25542) +++ rules.make (Arbeitskopie) @@ -160,7 +160,7 @@ endif # -# Implement ADDITIONAL_NATIVE_LIBS +# Implement ADDITIONAL_NATIVE_LIBS/ADDITIONAL_NATIVE_LIB_DIRS # # A native lib is a framework on apple, and a shared library # everywhere else. Here we provide the appropriate link flags @@ -168,8 +168,10 @@ # ifeq ($(FOUNDATION_LIB),apple) ADDITIONAL_OBJC_LIBS += $(foreach lib,$(ADDITIONAL_NATIVE_LIBS),-framework $(lib)) + ADDITIONAL_LIB_DIRS += $(foreach libdir,$(ADDITIONAL_NATIVE_LIB_DIRS),-F$(libdir)) else ADDITIONAL_OBJC_LIBS += $(foreach lib,$(ADDITIONAL_NATIVE_LIBS),-l$(lib)) + ADDITIONAL_LIB_DIRS += $(foreach libdir,$(ADDITIONAL_NATIVE_LIB_DIRS),-L$(libdir)/$(GNUSTEP_OBJ_DIR)) endif # Index: Documentation/make.texi =================================================================== --- Documentation/make.texi (Revision 25542) +++ Documentation/make.texi (Arbeitskopie) @@ -476,6 +476,11 @@ targets and into -framework MyLibrary link flag for apple-apple-apple. +To add the corresponding flags, you can use [EMAIL PROTECTED] += ../MyPath} +This will be converted into -L../MyPath/$(GNUSTEP_OBJ_DIR) flag +on for most targets and into -F../MyPath flag for apple-apple-apple. + @node objc.make, palette.make, native-library.make, Project Types @subsection Objective-C Programs (@file{objc.make}) @menu
_______________________________________________ Gnustep-dev mailing list Gnustep-dev@gnu.org http://lists.gnu.org/mailman/listinfo/gnustep-dev