Re: Versioned Symbols in Shared Libraries
On Wed, Feb 19, 2003 at 09:36:27AM +1100, Brian May wrote:
> Can somebody please tell me why ugly hacks like the
> following are required?
>
> +Versions: $(OBJS)
> + rm -f $@
> + echo "DB3_2 {" > $@
> + echo " global:" >> $@
> + nm $(OBJS) | grep " [Tt] " | cut -d" " -f3 | sed -e 's/$$/;/' >> $@
> + echo "};" >> $@
[...]
> Is that sed expression a mistake? It seems to be a NOP here, I
> am not sure why two $ signs are used.
$$ in a Makefile expands to $ when the command is run.
--
Colin Watson [cjwatson@flatline.org.uk]
Reply to: