[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Versioned Symbols in Shared Libraries



Hello,

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 "};" >> $@

Why can't the linker do this automatically?

I get the impression that the above would make it more painful, for
instance if some symbols are meant to be local, and not global.

Is that sed expression a mistake? It seems to be a NOP here, I
am not sure why two $ signs are used.
-- 
Brian May <bam@debian.org>



Reply to: