Dear Tomoyo developers, current tomoyo-tools and ccs-tools do not build with the "--as-needed" ld flag activated. This is due to a wrong order of parameters in usr/sbin/Makefile in both' official tarballs (all versions).
See gentoo bugs: https://bugs.gentoo.org/show_bug.cgi?id=364921 https://bugs.gentoo.org/show_bug.cgi?id=364921 as well as debian bug: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=641403 for a reference. I was not able to find any public source code management and thus feel unable to provide a proper patch, however the following methods describe and fix the issue: 1) quick'n'easy with sed: sed -i -e "s/$<//" -e "s/$\@/& $</" {tomoyo-tools,ccstools}/usr/sbin/Makefile 2) attached patches Regards, thomasg
--- tomoyo-tools/usr_sbin/Makefile 2011-08-20 02:00:00.000000000 +0200 +++ tomoyo-tools/usr_sbin/Makefile.new 2011-09-27 03:07:13.247524358 +0200 @@ -19,7 +19,7 @@ ln -sf libtomoyotools.so.2.0.1 libtomoyotools.so .c: - $(CC) $(CFLAGS) -o $@ -ltomoyotools -L. $< + $(CC) $(CFLAGS) -o $@ $< -ltomoyotools -L. tomoyo-editpolicy: tomoyotools.h editpolicy*.c readline.h /usr/include/curses.h libtomoyotools.so $(CC) $(CFLAGS) -o tomoyo-editpolicy editpolicy*.c -lncurses -ltomoyotools -L. -DCOLOR_ON
--- ccstools/usr_sbin/Makefile 2011-09-16 02:00:00.000000000 +0200 +++ ccstools/usr_sbin/Makefile.new 2011-09-27 03:07:44.369523885 +0200 @@ -19,7 +19,7 @@ ln -sf libccstools.so.2.0.2 libccstools.so .c: - $(CC) $(CFLAGS) -o $@ -lccstools -L. $< + $(CC) $(CFLAGS) -o $@ $< -lccstools -L. ccs-editpolicy: ccstools.h editpolicy*.c readline.h /usr/include/curses.h libccstools.so $(CC) $(CFLAGS) -o ccs-editpolicy editpolicy*.c -lncurses -lccstools -L. -DCOLOR_ON
_______________________________________________ tomoyo-users-en mailing list [email protected] http://lists.sourceforge.jp/mailman/listinfo/tomoyo-users-en
