Skip to content

Commit

Permalink
LibPDEngine: correct Makefile flag command order for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
clwe committed Sep 20, 2021
1 parent b5efc01 commit d7b16f7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -210,10 +210,6 @@ OBJECTS += $(libpd)
DEPS += $(libpd)
FLAGS += -Idep/include/libpd -DHAVE_LIBDL

$(libpd):
cd dep && git clone "https://github.com/libpd/libpd.git" --recursive
cd dep/libpd && git checkout 5772a612527f06597d44d195843307ad0e3578fe

ifdef ARCH_WIN
# PD_INTERNAL leaves the function declarations for libpd unchanged
# not specifying that flag would enable the "EXTERN __declspec(dllexport) extern" macro
Expand All @@ -225,6 +221,10 @@ ifdef ARCH_WIN
LDFLAGS += -lws2_32
endif

$(libpd):
cd dep && git clone "https://github.com/libpd/libpd.git" --recursive
cd dep/libpd && git checkout 5772a612527f06597d44d195843307ad0e3578fe

ifdef ARCH_MAC
# libpd's Makefile is handmade, and it doesn't honor CFLAGS and LDFLAGS environments.
# So in order for Mac 10.15 (for example) to make a build that works on Mac 10.7+, we have to manually add DEP_MAC_SDK_FLAGS to CFLAGS and LDFLAGS.
Expand Down

0 comments on commit d7b16f7

Please sign in to comment.