From kde-core-devel Mon Nov 05 21:39:37 2007 From: Thiago Macieira Date: Mon, 05 Nov 2007 21:39:37 +0000 To: kde-core-devel Subject: Re: WITH_PREFIX for kdemodules? Message-Id: <200711052239.38477.thiago () kde ! org> X-MARC-Message: https://marc.info/?l=kde-core-devel&m=119429883423885 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--nextPart2258000.jyD14u8TNc" --nextPart2258000.jyD14u8TNc Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Alexander Neundorf wrote: >Ok. So this means if every plugin would have the "lib" prefix we could > link to every plugin (maybe on all platforms). No. You can dlopen any library. You can't link to plugins, lib prefix or not.=20 (Unless you do the test and verify that it works -- I didn't) >If the plugin doesn't have the "lib" prefix, we can't link to it (at > least on some platforms). Even if the library doesn't have the lib prefix, we can link to it. But it= =20 requires the full path to it to be passed on the linker command-line.=20 Definitely not recommended. >So we have three options: >1) leave it as it is and keep the "WITH_PREFIX" option, so some plugins > have the "lib" prefix and others don't > >2) remove the WITH_PREFIX option and always use the "lib" prefix -> > should bring no problems, may look at bit ugly, probably also doesn't > bring any advantages > >3) remove the WITH_PREFIX option, never use the "lib" prefix -> slightly > nicer code, linking to a plugin not possible (since -lkfoo won't find > kfoo.so) > >If it's no problem for us that we cannot link to a plugin I'd vote for > 3) And I agree. We shouldn't be linking to plugins. If someone wants to dlopen a library, QLibrary already prepends the "lib"=20 prefix if necessary, on the proper platforms. =2D-=20 =A0 Thiago Macieira =A0- =A0thiago (AT) macieira.info - thiago (AT) kde.org =A0 =A0 PGP/GPG: 0x6EF45358; fingerprint: =A0 =A0 E067 918B B660 DBD1 105C =A0966C 33F5 F005 6EF4 5358 --nextPart2258000.jyD14u8TNc Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (GNU/Linux) iD8DBQBHL42aM/XwBW70U1gRAhXZAJ9CieAI9XhEceUtGMRQPcxQ7OTUPQCghyQb O8c2P1JBFf+RqeTY2hU1HBQ= =M9Ur -----END PGP SIGNATURE----- --nextPart2258000.jyD14u8TNc--