PATCH: am_edit kdeinit library autogeneration

Benjamin Reed ranger at befunk.com
Sun Mar 16 18:21:58 GMT 2003


Here is a first blush of the patch to autogenerate a shared 
library/module combination for binaries for kdeinit.

Basically, instead of having:

---(before)---
bin_PROGRAMS = dcopserver
lib_LTLIBRARIES = dcopserver.la

dcopserver_la_LDFLAGS = -module -avoid-version $(all_libraries)
dcopserver_la_SOURCES = dcopserver.cpp dcopsignals.cpp
dcopserver_la_LIBADD   = libDCOP.la

dcopserver_LDFLAGS = $(KDE_RPATH) $(all_libraries)
dcopserver_SOURCES = dummy.cpp
dcopserver_LDADD   = dcopserver.la
---(end before)---

You would do this:

---(after)---
bin_PROGRAMS = dcopserver
KDEINIT = dcopserver

dcopserver_LDFLAGS = $(KDE_RPATH) $(all_libraries)
dcopserver_SOURCES = dcopserver.cpp dcopsignals.cpp
dcopserver_LDADD   = libDCOP.la
---(end after)---

What it will *actually* end up generating is libkdeinit_dcopserver.la 
(which is a normal libtool library), and then it generates a 
dcopserver.la (kde module) and dcopserver (binary) which link against 
libkdeinit_dcopserver.la.

This allows building on platforms (like macosx and a.out netbsd) that 
don't allow linking against libtool modules.  I've tested it with both 
dependency tracking enabled and disabled and it seems to work OK.

I'm doing some test builds right now with kdelibs and kdebase after 
modifying the bits that don't build on osx, and it's working so far.  If 
I get buy-in that everything's cool, I'll start making Makefile.am 
changes in HEAD to make things build nicely.



-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: am_edit.patch
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20030316/fe984ada/attachment.ksh>


More information about the kde-core-devel mailing list