You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by as...@apache.org on 2019/11/22 19:01:02 UTC

[qpid-proton] branch master updated: PROTON-2143: Get rid of Windows linkage warnings

This is an automated email from the ASF dual-hosted git repository.

astitcher pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/qpid-proton.git


The following commit(s) were added to refs/heads/master by this push:
     new 69f5dfe  PROTON-2143: Get rid of Windows linkage warnings
69f5dfe is described below

commit 69f5dfe7eb22432dbec666b5c7a1dca786c93657
Author: Andrew Stitcher <as...@apache.org>
AuthorDate: Fri Nov 22 10:24:49 2019 -0500

    PROTON-2143: Get rid of Windows linkage warnings
---
 c/tests/fuzz/CMakeLists.txt | 1 +
 python/setup.py.in          | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/c/tests/fuzz/CMakeLists.txt b/c/tests/fuzz/CMakeLists.txt
index b4470d5..85703f3 100644
--- a/c/tests/fuzz/CMakeLists.txt
+++ b/c/tests/fuzz/CMakeLists.txt
@@ -57,6 +57,7 @@ pn_add_fuzz_test (fuzz-message-decode fuzz-message-decode.c)
 
 # pn_url_parse is not in proton core and is only used by messenger so compile specially
 pn_add_fuzz_test (fuzz-url fuzz-url.c ${PN_C_SOURCE_DIR}/extra/url.c  ${PN_C_SOURCE_DIR}/core/util.c)
+target_compile_definitions(fuzz-url PRIVATE PROTON_DECLARE_STATIC)
 
 # This regression test can take a very long time so don't run by default
 if(HAS_PROACTOR AND FUZZ_LONG_TESTS)
diff --git a/python/setup.py.in b/python/setup.py.in
index a12ec73..31fa59e 100644
--- a/python/setup.py.in
+++ b/python/setup.py.in
@@ -326,5 +326,5 @@ setup(name='python-qpid-proton',
       # Configure class above
       ext_modules=[Extension('_cproton',
                              sources=['cproton_wrap.c'],
-                             extra_compile_args=['-pthread'],
+                             extra_compile_args=['-pthread', '-DPROTON_DECLARE_STATIC'],
                              libraries=['qpid-proton-core'])])


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org