Skip to content

Commit

Permalink
remove ld library
Browse files Browse the repository at this point in the history
  • Loading branch information
charlesneimog committed Dec 10, 2023
1 parent d521e19 commit fc52fda
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/Builder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,9 @@ jobs:
cp py4pd.m_amd64 py4pd\
cp py4pd.m_amd64 test\py4pd\py4pd.m_amd64
- name: Run tests
- name: Tests
shell: cmd
run: |
cd test
python3 runTests.py
run: cd test && python3 runTests.py

- name: Upload Object ZIP
uses: actions/upload-artifact@v3
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ ifeq (MINGW,$(findstring MINGW,$(uname)))
PYTHON_PATH := $(shell cat pythonpath.txt)
NUMPY_INCLUDE := $(shell cat numpyincludes.txt)
PYTHON_DLL := $(PYTHON_PATH)/python311.dll
cflags = -l dl -I '$(PYTHON_INCLUDE)' -I '$(NUMPY_INCLUDE)' -Wno-cast-function-type -Wno-unused-variable
ldlibs = '$(PYTHON_DLL)' -lwinpthread -Xlinker --export-all-symbols
cflags = -I '$(PYTHON_INCLUDE)' -I '$(NUMPY_INCLUDE)' -Wno-cast-function-type -Wno-unused-variable
ldlibs = '$(PYTHON_DLL)' -lwinpthread

# =================================== Linux =====================================
else ifeq (Linux,$(findstring Linux,$(uname)))
Expand Down
4 changes: 4 additions & 0 deletions src/py4pd.c
Original file line number Diff line number Diff line change
Expand Up @@ -1142,3 +1142,7 @@ void py4pd_setup(void) {
gensym("detach"), 0);
#endif
}

#ifdef __WIN64
__declspec(dllexport) void py4pd_setup(void);
#endif

0 comments on commit fc52fda

Please sign in to comment.