]> granicus.if.org Git - python/commitdiff
Add linker flag -export-dynamic so symbols in libpython*.a are exported.
authorGuido van Rossum <guido@python.org>
Mon, 10 Jul 2000 16:22:12 +0000 (16:22 +0000)
committerGuido van Rossum <guido@python.org>
Mon, 10 Jul 2000 16:22:12 +0000 (16:22 +0000)
Demo/embed/Makefile

index 92f4df347c7cb421208e3b0802914d14f2f379c7..fb2b1edc2a878b5fad3cb6ba7f6aebc27a4821ce 100644 (file)
@@ -22,6 +22,7 @@ LIBPYTHON=    $(blddir)/libpython$(VERSION).a
 
 # XXX edit LIBS (in particular) to match $(blddir)/Modules/Makefile
 LIBS=          -lnsl -ldl -lreadline -ltermcap -lieee -lpthread -lutil
+LDFLAGS=       -Xlinker -export-dynamic
 SYSLIBS=       -lm
 MODLIBS=       
 ALLLIBS=       $(LIBPYTHON) $(MODLIBS) $(LIBS) $(SYSLIBS)
@@ -29,7 +30,7 @@ ALLLIBS=      $(LIBPYTHON) $(MODLIBS) $(LIBS) $(SYSLIBS)
 # Build the demo application
 all:           demo
 demo:          demo.o
-               $(CC) demo.o $(ALLLIBS) -o demo
+               $(CC) $(LDFLAGS) demo.o $(ALLLIBS) -o demo
 
 # Administrative targets