[Devel] [ openser-Patches-1637784 ] add LD_EXTRA_OPTS to Makefile.defs

SourceForge.net noreply at sourceforge.net
Mon Jan 22 13:20:01 CET 2007


Patches item #1637784, was opened at 2007-01-17 17:01
Message generated for change (Settings changed) made by bogdan_iancu
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=743022&aid=1637784&group_id=139143

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: tools
Group: ver devel
>Status: Closed
>Resolution: Accepted
Priority: 5
Private: No
Submitted By: Ovidiu Sas (osas)
>Assigned to: Bogdan (bogdan_iancu)
Summary: add LD_EXTRA_OPTS to Makefile.defs

Initial Comment:
It would be usefull to have the ability to insert custom ld options while linking (it is helping a lot while cross compiling).

Here is a small patch for the 1.1 release that can be easily ported to dev version:

diff -Naurp sip-server/Makefile.defs openser/Makefile.defs
--- sip-server/Makefile.defs    2006-10-19 11:04:05.000000000 -0400
+++ openser/Makefile.defs       2007-01-17 09:39:09.000000000 -0500
@@ -5,7 +5,7 @@
 # Environment variables:
 #   PREFIX, LOCALBASE, BASEDIR
 #   INSTALL, TAR , CC, LEX, YACC,
-#   CPU, CC_EXTRA_OPTS,
+#   CPU, CC_EXTRA_OPTS, LD_EXTRA_OPTS
 #   exclude_modules, skip_modules, include_modules
 #   extra_defs
 #
@@ -934,6 +934,7 @@ endif   # CFLAGS not set
 
 CFLAGS+= $(CC_EXTRA_OPTS)
 
+LD_EXTRA_OPTS ?=

 # setting LDFLAGS
 ifeq   ($(CC_NAME), gcc) 
@@ -1190,6 +1191,8 @@ ifeq ($(OS), darwin)
        YACC=yacc
 endif
 
+LDFLAGS+= $(LD_EXTRA_OPTS)
+
 ifneq (,$(findstring CYGWIN, $(OS)))
        #cygwin is the same as common
        ifneq ($(found_lock_method), yes)


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=743022&aid=1637784&group_id=139143



More information about the Devel mailing list