[csw-maintainers] Proposal: direct binding for all the opencsw software stack

Ben Walton bwalton at opencsw.org
Sat Aug 25 17:34:36 CEST 2012


Excerpts from Yann Rouillard's message of Sat Aug 25 11:10:57 -0400 2012:

Hi Yann,

> For 2., I don't know yet. I would like some input from Dago on the
> best way to add distribution wide LDFLAGS while still allowing to
> override them.  I was thinking about adding a COMMON_LDFLAGS mgar
> variable that could easily be overriden in the Makefile.

What about:

bwalton @ unstable10s : ~/opencsw/.buildsys/v2
$ svn diff
Index: gar.conf.mk
===================================================================
--- gar.conf.mk (revision 19080)
+++ gar.conf.mk (working copy)
@@ -706,7 +706,7 @@
 CFLAGS   ?= $(strip $($(GARCOMPILER)_CC_FLAGS) $(_CATEGORY_CFLAGS)
 $(EXTRA_CFLAGS))
 CXXFLAGS ?= $(strip $($(GARCOMPILER)_CXX_FLAGS) $(_CATEGORY_CXXFLAGS)
 $(EXTRA_CXXFLAGS))
 CPPFLAGS ?= $(strip $($(GARCOMPILER)_CPP_FLAGS) $(_CATEGORY_CPPFLAGS)
 $(EXTRA_CPPFLAGS) $(INCLUDE_FLAGS))
-LDFLAGS  ?= $(strip $($(GARCOMPILER)_LD_FLAGS) $(_CATEGORY_LDFLAGS)
$(EXTRA_LDFLAGS) $(LINKER_FLAGS))
+LDFLAGS  ?= $(strip $($(GARCOMPILER)_LD_FLAGS) $(_CATEGORY_LDFLAGS)
$(EXTRA_LDFLAGS) $(LINKER_FLAGS) $(ifeq $(NO_LD_DIRECT),,-Bdirect))
 ASFLAGS  ?= $(strip $($(GARCOMPILER)_AS_FLAGS) $(_CATEGORY_ASFLAGS)
 $(EXTRA_ASFLAGS))
 OPTFLAGS ?= $(strip $($(GARCOMPILER)_CC_FLAGS) $(_CATEGORY_OPTFLAGS)
 $(EXTRA_OPTFLAGS))
 FFLAGS   ?= $(strip $($(GARCOMPILER)_FFLAGS) $(_CATEGORY_FFLAGS)
 $(EXTRA_FFLAGS))


That would allow a maintainer to set NO_LD_DIRECT in the recipe to
skip that flag but for everything else it would be set.

Thanks
-Ben
--
Ben Walton
Systems Programmer - CHASS
University of Toronto
C:416.407.5610 | W:416.978.4302



More information about the maintainers mailing list