On Fri, Mar 4, 2011 at 7:44 AM, Dmitry N. Mikushin <[email protected]> wrote:
...
> %.so: DEPLIBS = $$($(LIBNAME)_DEPLIBS)
> %.so: dirs
>        @echo Linking shared library $(LIBNAME) ...
>        $(CPPCOMP) $(CPARAMS) -Wl,--no-undefined -shared -o $@ -L$(OUTDIR) \
>                -Wl,--gc-sections -Wl,--whole-archive -Wl,-static \
>                $(addprefix -l, $(STATIC_LIBS)) \
>                -Wl,--no-whole-archive -Wl,-call_shared $(DEPLIBS)
>
> If it is applied to bin/libfoo.so, LIBNAME becomes FOO, DEPLIBS
> becomes FOO_DEPLIBS, and final command works incorrectly because $$
> expansions were not actually performed. Why are expansions skipped and
> what can I do to get them working in this case?

The expansion is skipped because you used $$.  Why did you use $$?


Philip Guenther

_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make

Reply via email to