From ecb867e5fb283b017110c7534bbb0638639b3833 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ciro=20Santilli=20=E5=85=AD=E5=9B=9B=E4=BA=8B=E4=BB=B6=20?= =?UTF-8?q?=E6=B3=95=E8=BD=AE=E5=8A=9F?= Date: Thu, 14 May 2020 01:00:00 +0000 Subject: [PATCH] python_embed: use correct flags with python3-config --embed --- userland/libs/python_embed/Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/userland/libs/python_embed/Makefile b/userland/libs/python_embed/Makefile index 2750dea..f5ff238 100644 --- a/userland/libs/python_embed/Makefile +++ b/userland/libs/python_embed/Makefile @@ -3,7 +3,7 @@ CC = gcc CXX = g++ CFLGS = -std=c99 -CCFLGS = -ggdb3 -O0 -pedantic-errors -Wall -Wextra -Wno-missing-field-initializers +CCFLGS = -ggdb3 -O0 -pedantic-errors -Wall -Wextra -Wno-missing-field-initializers -fpie CXXFLGS = -std=c++11 IN_EXT = .c IN_CXX_EXT = .cpp @@ -16,10 +16,10 @@ OUTS = $(addsuffix $(OUT_EXT), $(basename $(wildcard *$(IN_EXT))) $(basename $(w all: $(OUTS) %$(OUT_EXT): %$(IN_EXT) - $(CC) $(CFLGS) $(CCFLGS) $$(pkg-config --cflags python3) -o '$@' '$<' $$(pkg-config --libs python3) + $(CC) $(CFLGS) $(CCFLGS) $$(python3-config --cflags --embed) -o '$@' '$<' $$(python3-config --embed --ldflags) %$(OUT_EXT): %$(IN_CXX_EXT) - $(CXX) $(CXXFLGS) $(CCFLGS) $$(pkg-config --cflags python3) -o '$@' '$<' $$(pkg-config --libs python3) + $(CXX) $(CXXFLGS) $(CCFLGS) $$(python3-config --cflags --embed) -o '$@' '$<' $$(python3-config --embed --ldflags) clean: rm -rf *'$(OUT_EXT)' __pycache__ *.pyc