Re: Shared library in D on Linux

2012-04-14 Thread GreatEmerald
On Sunday, 8 April 2012 at 08:45:46 UTC, Timo Westkämper wrote: dmd -g -c test.d -fPIC ld -shared -o libtest.so test.o -lrt -lphobos2 -lpthread gcc -g main.c -ldl -lpthread Hmm, wouldn't using DMD directly for the first two compilation steps do the same thing, just fast

Shared library packaging issues

2014-11-15 Thread GreatEmerald via Digitalmars-d
I'm currently attempting to package my D project (https://github.com/GreatEmerald/libarcomage/) as a shared library for openSUSE and whatnot, but I'm running into some policy problems. First, in order to build a shared library, it has to link against libphobos2.so. libphobos2.so i

Re: Shared library packaging issues

2014-11-15 Thread GreatEmerald via Digitalmars-d
On Saturday, 15 November 2014 at 14:49:23 UTC, Jordi Sayol via Digitalmars-d wrote: Since dmd v2.064.0, a shared phobos2 library package already exist for Debian based systems:

Re: Shared library packaging issues

2014-11-15 Thread GreatEmerald via Digitalmars-d
On Saturday, 15 November 2014 at 18:36:28 UTC, Jordi Sayol via Digitalmars-d wrote: Meanwhile there is not an RPM package for phobos 2 shared library, I think you can spread it together with your library: "/usr/lib/i386-linux-gnu/libphobos2.so.0.66.1" (for 32-bit) "/usr/lib/x86_64-linux-gnu/li

Re: Shared library packaging issues

2014-11-15 Thread GreatEmerald via Digitalmars-d
On Saturday, 15 November 2014 at 22:19:07 UTC, Iain Buclaw via Digitalmars-d wrote: It's a libgphobos-dev package for gdc. Ah, so they repackage it as well. Same with LDC. Not that it helps much, given that there's also no GDC on openSUSE. Oh well.

Re: Shared library packaging issues

2014-11-17 Thread GreatEmerald via Digitalmars-d
On Monday, 17 November 2014 at 02:29:54 UTC, Marco Leise wrote: Exactly a year ago I created a poll[1] about the include path and 65% voted for "dlang" over just "d". We should stick to "/usr/include/dlang" now for a consistent experience across distributions. Compilers' import paths are less of

Re: Shared library packaging issues

2014-11-18 Thread GreatEmerald via Digitalmars-d
On Tuesday, 18 November 2014 at 11:14:06 UTC, Marc Schütz wrote: That's great to hear! Duncan Mac-Vicar started work on an LDC packages, which I'm keeping up-to-date since then: https://build.opensuse.org/package/show/home:marc_schuetz:branches:home:dmacvicar/ldc I'm going to ask him, and then

Re: Shared library packaging issues

2014-11-18 Thread GreatEmerald via Digitalmars-d
On Monday, 17 November 2014 at 19:36:10 UTC, GreatEmerald wrote: Though I'm still a bit unsure about the whole druntime part. The official RPM doesn't include any libraries for druntime, only includes, albeit building it from source does produce a druntime library. Is it worth sep

Re: Shared library packaging issues

2014-11-18 Thread GreatEmerald via Digitalmars-d
On Tuesday, 18 November 2014 at 16:26:58 UTC, Marco Leise wrote: ABI differences in source files only apply to druntime/Phobos and these imports are generally on the default import path. I was more concerned with GtkD and similar 3rd party libraries, for which you have to specify the import path.