On 06/28/2017 04:20 AM, Dan Wilcox wrote:
I did run into a missing pthread error after building which was fixed with the following in the mingw platform section of the configure.ac
# statically link pthread into the exe, otherwise we get a missing dll error LIBS="-Wl,-Bstatic -static $LIBS -Wl,-Bdynamic"
but that links in *all* libraries statically (not just pthreads).
It shouldn't as static is set, then pthread linked, then dynamic reset afterwards. In any case, it's probably not needed and the issue I ran into is more related to the Msys2 / MinGW setup I put together.
iirc, a number of externals rely on Pd providing things like pthreadVC.dll. so if we have to provide a few dlls anyhow, i don't see much merit in static linking.
e.g. this fixed the runtime problem for me: cp /usr/i686-w64-mingw32/lib/libwinpthread-1.dll bin/
My static linking fix worked for me but I can definitely see issues for externals. We need to then find the dll & copy it to the pd/bin folder programmatically with autoconfi/automake...
in any case, i think the actual wish.exe should be specifiable on the cmdline. make WISHAPP=desire.exe
Yes, although I'd suggest a configure option like --prefix:
./configure --wish=desire.exe
-------- Dan Wilcox @danomatika http://twitter.com/danomatika danomatika.com http://danomatika.com/ robotcowboy.com http://robotcowboy.com/
On 2017-06-29 13:55, Dan Wilcox wrote:
On 06/28/2017 04:20 AM, Dan Wilcox wrote:
# statically link pthread into the exe, otherwise we get a missing dll error LIBS="-Wl,-Bstatic -static $LIBS -Wl,-Bdynamic"
but that links in *all* libraries statically (not just pthreads).
It shouldn't as static is set, then pthread linked, then dynamic reset afterwards.
what i meant is, that all libraries in "LIBS" will be statically linked (which might be more than just pthreadVC). i haven't actually checked the value of LIBS, but it sounds rather generic...
in any case, i think the actual wish.exe should be specifiable on the cmdline. make WISHAPP=desire.exe
Yes, although I'd suggest a configure option like --prefix:
./configure --wish=desire.exe
yes. i was more speaking with my recently-acquired makefile.msvc hat on, where this is obviously not an option...
i will submit fixes for both.