Bug#167604: debian-policy: provides the exception of static libraries.
>>>>> On Sun, 17 Nov 2002 05:32:04 +0000,
>>>>> "AS" == Andrew Suffield <asuffield@debian.org> wrote:
AS> You need the following patch to Makefile to fix this:
AS> --- Makefile~ 2002-11-17 05:26:45.000000000 +0000
AS> +++ Makefile 2002-11-17 05:31:02.000000000 +0000
AS> @@ -22,7 +22,7 @@
AS> gcc -rdynamic -ldl -L. -lfoo -o $@ $<
AS> t-static: t.c libfoo.a
AS> - gcc -static -export-dynamic -o $@ $< -L. -lfoo -ldl
AS> + gcc -export-dynamic -o $@ $< -L. -Wl,-Bstatic -lfoo -ldl -Wl,-Bdynamic
AS> clean:
AS> rm -f libfoo.so libfoo.a *.o t-shared t-static module.so
AS> -export-dynamic does no good if you linked a static object; you want a
AS> dynamic object with libfoo linked statically.
I know this way too. I mention completely static link. even
if -export-dynamic isn't specified, that sample doesn't
work with -static option. so I need an article for
exception.
--
Akira TAGOH : tagoh@gnome.gr.jp / Japan GNOME Users Group
at@gclab.org : tagoh@gnome-db.org / GNOME-DB Project
: tagoh@redhat.com / Red Hat, Inc.
: tagoh@debian.org / Debian Project
Reply to: