'LIBADD' contains unknown flag

Thiago Macieira thiago.macieira at kdemail.net
Sun Nov 7 20:23:47 GMT 2004


Mauricio Bahamonde wrote:
>ERROR:kopete/kopete/chatwindow/Makefile.am: variable 'LIBADD' contains
> unknown flag -Wl,--as-needed. These should be in LDFLAGS!

kopete_chatwindow_la_LIBADD = ../../libkopete/libkopete.la 
$(LIB_KOPETECOMPAT) $(LIB_KDEUI)

libkrichtexteditpart_la_LIBADD = $(KDE_RPATH) $(all_libraries) 
$(LIB_KPARTS) \
        $(LIB_KSPELL) $(LIB_KDEPRINT)

>ERROR:kopete/protocols/irc/libkirc/Makefile.am: variable 'LIBADD'
> contains unknown flag -Wl,--as-needed. These should be in LDFLAGS!

libkirc_la_LIBADD = $(all_libraries) $(KDE_RPATH) $(LIB_KIO)

>ERROR:mpeglib_artsplug/Makefile.am: variable 'LDADD' contains unknown
> flag -Wl,--as-needed. These should be in LDFLAGS!

libarts_mpeglib_la_LIBADD       =       
$(top_builddir)/mpeglib/lib/libmpeg.la

libarts_splay_la_LIBADD         =       
$(top_builddir)/mpeglib/lib/libmpeg.la

mpeglibartsplay_LDADD           =       $(all_libraries) \
                                        $(ARTSC_LIBS) \
                                        -lsoundserver_idl \
                                        -lkmedia2_idl \
                                        -lartsflow_idl \
                                        -lmcop

Is $(all_libraries)  the problem? It's the only thing in common to all the 
problems. If it contains -Wl,--as-needed, then the flag is in the wrong 
variable.

It should go in $(KDE_LDFLAGS) or $(AM_LDFLAGS).
-- 
  Thiago Macieira  -  Registered Linux user #65028
   thiago (AT) macieira (DOT) info
    ICQ UIN: 1967141   PGP/GPG: 0x6EF45358; fingerprint:
    E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20041107/e7ebe77a/attachment.sig>


More information about the kde-core-devel mailing list