]> granicus.if.org Git - graphviz/commitdiff
use the libtool trick for the static builds
authorellson <devnull@localhost>
Tue, 18 Oct 2005 18:28:41 +0000 (18:28 +0000)
committerellson <devnull@localhost>
Tue, 18 Oct 2005 18:28:41 +0000 (18:28 +0000)
cmd/dot/Makefile.am

index d1a67e62413efe5363beb7a074a472dce0860b81..abb67ea7bf9b3d9b392788cca526bb1c1ffd590f 100644 (file)
@@ -15,7 +15,7 @@ AM_CPPFLAGS = \
        -DBUILTINS
 
 if ENABLE_STATIC
-bin_PROGRAMS = dot_static
+bin_PROGRAMS = dot dot_static
 else
 bin_PROGRAMS = dot
 endif
@@ -43,7 +43,8 @@ uninstall-hook:
 dot.pdf: $(top_srcdir)/cmd/dot/dot.1
        groff -Tps -man $(top_srcdir)/cmd/dot/dot.1 | ps2pdf - - >$@
 
-dot_static_SOURCES = dot.c dot_static_builtins.c
+dot_static_SOURCES = dot.c
+dot_static_LDFLAGS = -export-dynamic -dlpreopen self -export-symbols-regex '.*_LTX_library'
 dot_static_LDADD = \
        $(top_builddir)/lib/plugin/.libs/libgvplugin_dot_layout.a \
        $(top_builddir)/lib/plugin/.libs/libgvplugin_neato_layout.a \