port: don't use cv2pdb by default if it exists

This commit is contained in:
fgsfds committed 2024-01-07 16:43:02 +01:00
1 parent 06f2283180
commit d1d288b96a
1 file changed
-7
-7
View File
@@ -154,13 +154,6 @@ ifneq (,$(findstring windows,$(TARGET_PLATFORM)))
TARGET_LDFLAGS := $(shell pkg-config sdl2 --libs) -lz -lopengl32 -static-libstdc++ -ldbghelp
# on windows/mingw we need this to be built with a 32-bit compiler so it finds the correct libs
TOOLCHAIN ?= i686-w64-mingw32-
# check if cv2pdb is present
ifeq ($(CV2PDB),)
CV2PDB := cv2pdb
ifeq (,$(shell which cv2pdb 2>/dev/null))
CV2PDB :=
endif
endif
else # assume *nix
TARGET_CFLAGS := $(shell pkg-config sdl2 --cflags-only-I)
TARGET_LDFLAGS := $(shell pkg-config sdl2 --libs) -lGL -lz -ldl