-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 2011-07-05 13:04, Patrice Colet wrote: > I've removed this in configure.ac: > > # ASIO is a C++ library, so if its included, then use g++ to build > CC=g++ > > compiles fine, only pd.exe is not working but pd.dll is fine, everything is > built. > > from all I've read in gnu manuals, automake automatically set g++ for cpp > files so there is no need to set CC. >
this what i have been suggesting (i think) attached is a diff against upstreams Pd that should use g++ for linking when using ASIO (it might use g++ for all linking, but that should be ok as well), by letting automake choose (rather than forcing it to use a special linker like "g++" (which hardcodes the compiler name...uähh)) it works on linux :-) fmgasdr IOhannes -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk4avYkACgkQkX2Xpv6ydvTwPACeOmrqMSLAdz/YA+68e4zgWYHO cZcAn32FOZOtnyIsGBoDfSDq/xYwwFFX =Djnx -----END PGP SIGNATURE-----
From 18878d89cfe3b02ff2649b48b6a9902fd1d0a4de Mon Sep 17 00:00:00 2001 From: IOhannes m zmoelnig <[email protected]> Date: Mon, 11 Jul 2011 11:00:21 +0200 Subject: [PATCH] force C++-linker when linking with ASIO --- src/Makefile.am | 12 ++++++++++-- 1 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/Makefile.am b/src/Makefile.am index b85f726..b73c44e 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -11,12 +11,20 @@ INCLUDES = @INCLUDES@ SUFFIXES = .@EXTENSION@ .@SHARED_LIB@ +pd_LDADD = +pd_SOURCES = +nodist_EXTRA_pd_SOURCES= + +# ASIO is C++, so it needs a C++ linker +if ASIO +nodist_EXTRA_pd_SOURCES += dummy.cpp +endif + bin_PROGRAMS = pd pdsend pdreceive pdsend_SOURCES = u_pdsend.c pdreceive_SOURCES = u_pdreceive.c pd_watchdog_SOURCES = s_watchdog.c -pd_LDADD = -pd_SOURCES = g_canvas.c g_graph.c g_text.c g_rtext.c g_array.c g_template.c \ +pd_SOURCES += g_canvas.c g_graph.c g_text.c g_rtext.c g_array.c g_template.c \ g_io.c g_scalar.c g_traversal.c g_guiconnect.c g_readwrite.c g_editor.c \ g_all_guis.c g_bang.c g_hdial.c g_hslider.c g_mycanvas.c g_numbox.c \ g_toggle.c g_vdial.c g_vslider.c g_vumeter.c \ -- 1.7.5.4
smime.p7s
Description: S/MIME Cryptographic Signature
_______________________________________________ Pd-dev mailing list [email protected] http://lists.puredata.info/listinfo/pd-dev
