Hi Dago,<div><br></div><div>How is LD_OPTIONS handled in the build process ? I do know very much this environment variable.</div><div><br></div><div>Concerning the mecanism proposed: is this a general thing we will be able to apply to any new opencsw wide variable ?</div>
<div><br></div><div>I would also like to enable "-z ignore" for all package, so I could create a LD_OPTIONS_IGNORE (or LD_OPTIONS_AS_NEEDED) to do the same thing but I wonder if is ok if we begin to add more variables.</div>
<div><br></div><div>Yann</div><div><br><div class="gmail_quote">2012/8/25 Dagobert Michelsen <span dir="ltr"><<a href="mailto:dam@opencsw.org" target="_blank">dam@opencsw.org</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Ben,<br>
<br>
Am 25.08.2012 um 17:34 schrieb Ben Walton:<br>
<div class="im">> Excerpts from Yann Rouillard's message of Sat Aug 25 11:10:<a href="tel:57%20-0400%202012" value="+15704002012">57 -0400 2012</a>:<br>
</div><div><div class="h5">> What about:<br>
><br>
> bwalton @ unstable10s : ~/opencsw/.buildsys/v2<br>
> $ svn diff<br>
> Index: <a href="http://gar.conf.mk" target="_blank">gar.conf.mk</a><br>
> ===================================================================<br>
> --- <a href="http://gar.conf.mk" target="_blank">gar.conf.mk</a> (revision 19080)<br>
> +++ <a href="http://gar.conf.mk" target="_blank">gar.conf.mk</a> (working copy)<br>
> @@ -706,7 +706,7 @@<br>
> CFLAGS ?= $(strip $($(GARCOMPILER)_CC_FLAGS) $(_CATEGORY_CFLAGS)<br>
> $(EXTRA_CFLAGS))<br>
> CXXFLAGS ?= $(strip $($(GARCOMPILER)_CXX_FLAGS) $(_CATEGORY_CXXFLAGS)<br>
> $(EXTRA_CXXFLAGS))<br>
> CPPFLAGS ?= $(strip $($(GARCOMPILER)_CPP_FLAGS) $(_CATEGORY_CPPFLAGS)<br>
> $(EXTRA_CPPFLAGS) $(INCLUDE_FLAGS))<br>
> -LDFLAGS ?= $(strip $($(GARCOMPILER)_LD_FLAGS) $(_CATEGORY_LDFLAGS)<br>
> $(EXTRA_LDFLAGS) $(LINKER_FLAGS))<br>
> +LDFLAGS ?= $(strip $($(GARCOMPILER)_LD_FLAGS) $(_CATEGORY_LDFLAGS)<br>
> $(EXTRA_LDFLAGS) $(LINKER_FLAGS) $(ifeq $(NO_LD_DIRECT),,-Bdirect))<br>
> ASFLAGS ?= $(strip $($(GARCOMPILER)_AS_FLAGS) $(_CATEGORY_ASFLAGS)<br>
> $(EXTRA_ASFLAGS))<br>
> OPTFLAGS ?= $(strip $($(GARCOMPILER)_CC_FLAGS) $(_CATEGORY_OPTFLAGS)<br>
> $(EXTRA_OPTFLAGS))<br>
> FFLAGS ?= $(strip $($(GARCOMPILER)_FFLAGS) $(_CATEGORY_FFLAGS)<br>
> $(EXTRA_FFLAGS))<br>
><br>
> That would allow a maintainer to set NO_LD_DIRECT in the recipe to<br>
> skip that flag but for everything else it would be set.<br>
<br>
</div></div>I see two drawbacks here:<br>
1. autoconf etc. could filter it as it is passed in the build chain<br>
2. A magic variable is introduced<br>
<br>
Therefore I suggest using LD_OPTIONS with<br>
LD_OPTIONS_DIRECT ?= -Bdirect<br>
and<br>
LD_OPTIONS ?= $(strip $($(GARCOMPILER)_LD_OPTIONS) $(RUNPATH_LINKER_FLAGS) $(LD_OPTIONS_DIRECT) $(EXTRA_LD_OPTIONS) $(_CATEGORY_LD_OPTIONS))<br>
with a possible override<br>
LD_OPTIONS_DIRECT =<br>
<br>
Thoughts?<br>
<br>
<br>
Best regards<br>
<br>
-- Dago<br>
<div class="HOEnZb"><div class="h5">_______________________________________________<br>
maintainers mailing list<br>
<a href="mailto:maintainers@lists.opencsw.org">maintainers@lists.opencsw.org</a><br>
<a href="https://lists.opencsw.org/mailman/listinfo/maintainers" target="_blank">https://lists.opencsw.org/mailman/listinfo/maintainers</a><br>
.:: This mailing list's archive is public. ::.<br>
</div></div></blockquote></div><br></div>