gnustep-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: RFA: ADDITIONAL_NATIVE_LIB_DIRS


From: David Ayers
Subject: Re: RFA: ADDITIONAL_NATIVE_LIB_DIRS
Date: Tue, 30 Oct 2007 22:12:17 +0100
User-agent: Mozilla Thunderbird 1.0.2 (X11/20070113)

David Ayers schrieb:
> 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

s/ADDITIONAL_LIB_DIRS/ADDITIONAL_FRAMEWORK_DIRS/ for the apple case...

Can you tell I don't have OS X to test this ;-)

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_FRAMEWORK_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
address@hidden += ../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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]