mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
Add linker flag -export-dynamic so symbols in libpython*.a are exported.
This commit is contained in:
parent
44328e60df
commit
c716684df8
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue