Skip to content

Commit 74a12b8

Browse files
Also append linker flags from python3-embed, which is the new way of getting the python library flag.
1 parent 22ca736 commit 74a12b8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -427,8 +427,8 @@ endif
427427

428428
# python
429429
FLAGS+=$(shell $(PKG_CONFIG) --cflags python3)
430-
LIBS+=$(shell $(PKG_CONFIG) --libs python3) -lpython3
431-
430+
LIBS+=$(shell $(PKG_CONFIG) --libs python3)
431+
LIBS+=$(shell $(PKG_CONFIG) --libs python3-embed)
432432
ifdef XDR
433433
# libtirpc is where the XDR routines have been moved to from glibc
434434
LIBTIRPC=$(shell if $(PKG_CONFIG) libtirpc; then $(PKG_CONFIG) --libs libtirpc; fi)

0 commit comments

Comments
 (0)